Berkeley versions of printing 

The Berkeley versions of the UNIX operating system provide line printer spooling with a collection of programs: lpr (assign to queue), lpq (display the queue), lprm (remove from queue), and lpc (control the queue). These programs interact with an autonomous process called the line printer daemon.

cmd:lpr 

Usage 

lpr -C"letter hduplex"

Help 

-# number Prints a specific number of copies. Specify number as a positive integer. The default for number is 1.

-C class Prints class as the job classification on the banner page of the output. Enclose class in double quotes if it contains blanks. If class is not specified, the name of the system (as returned by hostname) is printed as the job classification. See hostname(1) .

-m Sends mail after file has printed (see mail(1) ). By default, no mail is sent upon normal completion of a print request.

-h Suppresses printing of the banner page of the output.

-P destination Prints file on a specific printer

documented on: 16:58:07

Printing via Unix cmd:lpr 

if print using font "Courier New", then nothing but a bounch of A is printed. After changing font "Courier New" to font "Courier", it prints ok.

Caution it seems that the font can't be downloaded to the printer when printing in the unix environment. So be careful when choosing your printing fonts.
lpr -J '.' -T '-'

documented on: 11-20-98

printer queue handling 

Usage 

remove all 
lprm -
remove jobs individually 
lprm request-ID

sample:

lprm 27
lprm -P pkp31f3 237

Help 

lprm - remove print requests from the print queue

/usr/ucb/lprm [ -P destination ] [ - ] [ request-ID ... ] [ user ... ]

Symptom 

When the cs4 print queue name is changed, that print jobs in the iitrc (Solaris) could not be deleted.

Using 'lprm -' won't work.

Solution 

Delete everything under /var/spool/print

documented on: 06-30-99