Script 1

General interface program file:

NETPRINTER=“basename$0” copies=$4 shift;shift;shift;shift;shift; files=“$*”

i=1

while (Si -le $copies) do

for file in $files

do

echo binary > /tmp/ftp.$$ echo put $file >> /tmp/ftp.$$ echo quit >>/tmp/ftp.$$

/usr/bin/ftp -n SNETPRINTER c /tmp/ftp.$$ /bin/rm/tmp/ftp.$$

done

i=‘expr $i+1’ done

exit 0”

*end of script*"

Script 2

The following script should have the same name as the host name you gave the printer.

TEMPFILE=/tmp/ftpprint.SS

printer=‘epsonprt’

/usr/spool/lp/model/standard ‘33” >STEMPFILE ftp -n Sprinter <<EOF

send $TEMPFILE quit

EOF

rm $TEMPFILE exit

5-10 Using UNIX