Using the Ethernet Card

If you create a printer with the SCO administration program (SYSADMSH), the printer model scripts are copied to the following directory:

/usr/spool/lp/admins/lp/interfaces

You can place a script directly into your interface directory, or you can type the following:

/usr/lib/lpadmin-pPRINTER-v/dev/null-i/etc/

INTERFACESCRIPT

PRINTER is the printer name used in lpd printer and INTERFACESCRIPT is the file name containing the next ftp script.

Script 1

General interface program file:

NETPRINTER=”basename $0” copies=$4 shift;shift;shift;shift;shift; file=”$*”

i=1

while ($i-le $copies) do

for file i n $files do

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

/usr/bin/ftp -n $NETPRINTER < /tmp/ftp.$$ /bin/rm /tmp/ftp.$$

done

i=’expr $i+1’ done

exit 0”

*end of script*”

6-18