Epson EPL-N2000 User Manual - Network Administration - Page 62
Script 2, Configuring the EPL-N2000 for UNIX
View all Epson EPL-N2000 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 62 highlights
Script 2 The following script should have the same name as the host name for the EPL-N2000: TEMPFILE=/tmp/ftpprint.$$ printer='epsonprt' /usr/spool/lp/model/standard "$@" >$TEMPFILE ftp -n $printer
Configuring the EPL-N2000 for UNIX
5-11
Script 2
The following script should have the same name as the host
name for the EPL-N2000:
TEMPFILE=/tmp/ftpprint.$$
printer=’epsonprt’
/usr/spool/lp/model/standard “$@” >$TEMPFILE
ftp -n $printer <<EOF
send $TEMPFILE
quit
EOF
rm $TEMPFILE
exit
Script 2 intercepts the print command and runs another printer
interface script, in this case the printer “standard,” then redirects
the output to a temporary file. The script then opens an ftp
session with the printer, sets binary mode, and sends the
temporary file to the printer. Finally, the temporary file is
removed.
Note:
The name of the model and interface directories used by your UNIX
system may differ from those used by SCO.