Setting up for ibm aix systems – Epson 850N User Manual

Page 121

Advertising
background image

Using the Ethernet Card

6-19

Script 2

The following script should have the same name as the name
you gave the printer.

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” script is sent,
using the same options ($@) to redirect 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. The temporary file is then removed.

Setting Up for IBM AIX Systems

AIX uses the lpr function, which you set up using the SMIT
utility. Follow these steps:

1. Complete the steps in “Setting Up the Printer as a Network

Device” on page 6-13 and “Setting Up the Printer as a
Remote Printer” on page 6-15.

2. Invoke SMIT as a superuser and go to the Add Remote

Queue menu. To access the Add Remote Queue menu,
select menus and submenus in the following order:

Devices
Printer/Plotter
Manage Remote Printer Subsystem
Client Services
Remote Printer Queues
Add Remote Queue

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

Advertising