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:
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
for file i n $files do
echo binary > /tmp/ftp.$$ echo put $file >> /tmp/ftp.$$ echo quit >> /tmp/ftp.$$
/usr/bin/ftp
done
i=’expr $i+1’ done
exit 0”
*end of script*”