Installation guide

Each synonym (including the printer number) identifies the printer to the
print system. For example, if you chose the synonym ’draft’ for a printer,
the following command prints files on this printer:
$ lpr -Pdraft files
10.5.1.4 Device Special File
The device special file provides access to the port on the computer to which
the printer is connected. The device special file is used if the printer is
directly connected to a local serial or parallel port. In this case, you must
equate a printer device logical name to the printer’s device special file
name by using the
lp symbol in the /etc/printcap file. For example:
lp=/dev/lp
The installation procedure creates some device special files for the
hardware that is connected to your computer. Usually, the device special
files for parallel printers are named /dev/lp
n
(for example: lp1, lp2,
lp3), and the device special files for serial line printers are named
/dev/tty
nn
(for example: tty00, tty01, tty02). The
n
and
nn
variables
specify the number of the printer.
When you use lprsetup, the program defaults to the next consecutive
number when it sets up this file. For example, the default device pathname
for the third serial line printer is /dev/tty03.
The default device special file is /dev/lp, which specifies a parallel printer.
For remote printers, you should specify a null argument with the lp
symbol. For example:
lp=
_______________________ Note _______________________
If the port is used for logins, the lprsetup script turns off the
terminal line established by the getty process so the terminal
line can be used for a printer.
10.5.1.5 Printer Accounting
The af parameter specifies the name of the accounting file used to keep
track of the number of pages printed by each user for each printer. The
name of the accounting file should be unique for each printer on your
Administering the Print Services 10–7