1 Einstein Drive
Princeton, NJ 08540, USA
In what follows below, 'laptop' refers to an SNS supplied laptop computer.
Refer to this section of the CUPS (Common Unix Print System) manual to learn more about the options to the lpr command described below.
lpr
filename.ps
a2ps
filename.txt
Monochrome printers print double-sided by default.
Color printers print single-sided by default.
To force single-sided printing e.g.
lpr -o sides=one-sided filename.ps
To force double-sided printing e.g.
lpr -o sides=two-sided-long-edge filename.ps
or alternatively
lpr -o sides=two-sided-short-edge
filename.ps
Optionally from a desktop computer ....
You may specify single-sided printing or double-sided (duplex)
printing by printing to the appropriate queue.
Each printer has three queues: printer,
printers, and printerd.
For example, you may print duplex (the default) by printing to
bw4.
You may print one-sided by printing to bw4s.
You may specify duplex (the default in this case) by printing to
bw4d.
lpr -o number-up=4 filename.psOptionally from a desktop computer ....
Use the 2up(d) or 4up(d)
commands.
2up filename.ps which prints 2 pages per side to
your default printer.
4upd filename.ps col3 which prints 4 pages per
side & double-sided to print queue col3.
lpstat -d
lpstat -a
lpstat [printername]cancel job-id
Example:
pr163[1] lpr testfile.ps pr163[2] lpstat bw2 bw2-552 cooper 1929216 Wed Nov 27 13:37:04 2002 pr163[3] cancel bw2-552