BSD UNIX

When defining these variables, remember each is case sensitive. Define them as illustrated in these descriptions.

NPDIR_PATH (mandatory) Define the directory location of chr, banner, onlcr, and npscramble binaries. Usually /usr/ local/bin.

These binaries must be copied over from the host software.

COMM_PROG (mandatory) Specify a communication program to transfer the data to the Internal Ethernet Adapter (i.e. npwrite, rsh). If the program is npwrite, define the UNIT_PORT variable. Otherwise, define the LP_DEST variable.

PRINTER_TYPE (mandatory) Specify printer type (i.e. raw, ascii, ps, hp, gen7170).

UNIT_PORT (conditional) Specify the Internal Ethernet Adapter port name (i.e. prn). Use only when COMM_PROG is defined as rsh.

For example:

#END_MARK_1

NPDIR_PATH=./USR/LOCAL/BIN

COMM_PROG=rsh

UNIT_NAME=spike

LP_DEST=d1prn

PRINTER_TYPE=hp

BANNERPAGE=1

#START_MARK_1

NOTE: Additional variables can also be identified within this variable section as indicated by BANNERPAGE=1. Some other options include ASCII to PostScript conversion, carriage return insertion, and scrambling. By setting a particular variable to 1, this option is then turned on and a 0 turns it off.

4.Create the LP= device used as a locking mechanism for contending print jobs.

touch /dev/spike.prn chmod go+rw /dev/spike.prn

5.Start the print spooler. lpc start hp

6.Print with the following syntax: lpr -Pprintername filename

163

Page 163
Image 163
Compaq 5531, 5532, 5525B user manual #ENDMARK1 NPDIRPATH=./USR/LOCAL/BIN