lpr -C"letter hduplex"
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.
lpr -C"letter hduplex"
-# 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
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.
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
lprm -
lprm request-ID
sample:
lprm 27 lprm -P pkp31f3 237
lprm - remove print requests from the print queue
/usr/ucb/lprm [ -P destination ] [ - ] [ request-ID ... ] [ user ... ]
If a single `-' is given, lprm will remove all jobs which a user owns. If the super-user employs this flag, the spool queue will be emptied entirely.
When the cs4 print queue name is changed, that print jobs in the iitrc (Solaris) could not be deleted.
Using 'lprm -' won't work.
Delete everything under /var/spool/print
documented on: 06-30-99