Heading3 - 5.5.5.1 printing to fastport, Tabletitle - table 5-4: bsd print commands, Heading3 - 5.5.5.2 customizing bsd installation – Digi MIL-3000FTX User Manual

Page 61

Advertising
background image

MIL-3000FTX Series of FastPort Print Servers

5-15

For a parallel printer which will be used by PC-NFS:

parallel
hostname alpha

7. Start the printer and queue by typing the following:

lpc start beta

8. You can now print files with the lpr, or lp command.

lpr -Pbeta <filename>

, or

lp -dbeta <filename>

5.5.5.1Printing to FastPort

After installing both hardware and software, FastPort is ready to print.
Commonly used BSD print commands include:

Note:

* These parameters require root access.

5.5.5.2Customizing BSD Installation

Create the

.fpconfig

file in the spool directory (i.e.,

:sd=

entry in

printcap

), since this is where daemon executes fpfilter. The .fpconfig file

should be owned by the daemon.

5.5.5.2.1Banner Pages and Accounting Information

To print a banner page, the install script must be told to print a banner. It
adds the command

bannerfirst

to the .

fpconfig

file. To configure an

existing printer to send a banner, remove the existing printer and run the
installation script again.

Note:

The banner-generating programs are supplied “as is.”

To print accounting info., add the line

acctg

to the .

fpconfig

file. This

causes accounting information to be written to the file specified
by

:af=<

filename>

in the printcap entry.

Table 5-4: BSD Print Commands

Command

Function

lpr -p <printer> <file>

Prints the file to the printer

lpq -P <printer>

Displays any active queues for the printer

lpc stat <printer>

Interactive program for printer management

lpc clean <printer>

*Remove all print jobs for the printer

lpc restart <printer>

*Restart this <printer> queue

lprm -p <printer> <job# >

*Removes the <job# > from the print queue

Advertising