Spooling EasyCopy print output via JustPlot queues

This application note describes how to setup EasyCopy to spool its print output data via a JustPlot server/queue.

1. Download ec_jp.tar.gz and untar into the EasyCopy installation directory, by default /usr/local/easycopy.
You now have two new files in the easycopy directory: ecpsubjp and ecpstatjp.

2. Modify the file ecpsubjp to use the correct path 

 #!/bin/sh

# Script to submit jobs from EasyCopy to Justplot
# The EasyCopy Company, June 12, 2007

case `uname` in
SunOS )
JUSTPATH=/apps/justplot/setup
;;
* )
JUSTPATH=/apps/justplot/setup
;;
esac

TMPDIR=${TMPDIR:-/tmp}
OLDTMPDIR=$TMPDIR
tempdir="$TMPDIR/ecpsub$$"

while [ -d "$tempdir" ]
do
tempdir="$tempdir"T
done

trap "cd $OLDTMPDIR; rm -rf $tempdir" 15

# Create the temporary directory
mkdir $tempdir

cd $tempdir
TMPDIR=$tempdir
export TMPDIR

if [ $# -gt 1 ]; then
TMPFILE=$2
else
TMPFILE="$TMPDIR/$$.prt"
cat - > "$TMPFILE"
fi

. $JUSTPATH/userenv.sh

psubmit -server $1 -file "$TMPFILE" -format NATIVE

# Delete the temporary EasyCopy directory
cd "$OLDTMPDIR"
rm -rf $tempdir > /dev/null  

3. Modify the file ecpstatjp to use the correct path 

 #!/bin/sh

# Script to submit status command from EasyCopy to Justplot
# The EasyCopy Company, June 12, 2002

case `uname` in
SunOS )
JUSTPATH=/apps/justplot/setup
;;
* )
JUSTPATH=/apps/justplot/setup
;;
esac

. $JUSTPATH/userenv.sh

psubmit -status $@
echo
echo Press ENTER to continue
read line
  

4. Setup the required printers in EasyCopy using the Options->Printers->Add (Printer) wizard to do so.

5. Select "Local Printer" and press next.

6. Select the "Print System"=Justplot

7. In the Print Queue field, enter the Justplot "Server" name for the appropriate printer/plotter. As the print data will be passed through the JustPlot queue and not interpreted the data will always be passed through the first queue on the selected JustPlot server. Press next.

8. Select the Manufacturer and Printer Type and press next.

9. Set Printer name and location. Press Finish, and you should now be able to send your first print job from EasyCopy via the Justplot system to your printer/plotter.

10. Assumptions:
The JustPlot psubmit command is found in: /apps/justplot/bin/

For any further assistance please contact The EasyCopy Company at your usual contact numbers..