Epson 850N User Manual

Page 120

Advertising
background image

Using the Ethernet Card

6-18

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*”

basket-6.fm Page 18 Wednesday, May 13, 1998 4:37 PM

Advertising