beautypg.com

Epson C82346 User Manual

Page 62

background image

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 /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.

ftp -n Sprinter
send $TEMPFILE

quit

EOF
rm $TEMPFILE

exit

5-10 Using UNIX