Emulex NQTR0V-NATM User Manual

Page 117

Advertising
background image

4-14 Chapter 4

For example, the following defines a LaserJet IIIsi printer named
emlx_txt on the parallel port (port 1, TCP port 2501):

>

#emlx_txt | LJIII_1 | LaserJetIIIsi:\

:lp=emlx_txt:\

dummy device name

:emlx_n=IP_address:\

server IP addr.

:emlx_p=2501:

TCP port number

The following is an example for a Postscript printer named emlx_ps.

>

#emlx_ps | LJIII_1 | LaserJetIIIsi:\

:lp=emlx_ps:\

dummy device name

:emlx_n=IP_address:\

server IP addr.

:emlx_ps=disable:\

:emlx_p=2501:

TCP port number

6) Copy the sample Emulex printer interface file, LP_DUMB, to another

file that corresponds to the selected printer name.

For example:

>

#cp lp_dumb lp_emlx

7) Edit the lp_emlx file to specify the correct path to the RPRINT program.

Assuming the RPRINT program is kept in /usr/emlx, enter the second to
the last line of the lp_ emlx file as follows:
(shell commands)

>

#/usr/emlx/rprint `basename $0` $1

8) Using UNIX Bourne shell script programming, edit the lp_emlx file and

modify the banner page that precedes the printed output.

9) Install the printer into the System V spooler system.

Most System V spoolers are not required to be shut down to install a
printer, with the exception of HP-UX.

NOTE:

For HP-UX, before shutting down the spooling
system, check to see that there are no print jobs
running (enter lpstat -o). If jobs are running,
wait until they are completed.

>

#/usr/lib/lpshut

(HP-UX

only)

Advertising
This manual is related to the following products: