Printing in CUBINlab
Overview
This document describes how to print to the various printers connected to the network, including how to check the print queues and remove documents from such queues.
Available Printers
The following printers are currently available for printing in CUBINlab:
| Printer Name | Description |
|---|---|
cubin |
CUBIN Printer in the copy room (default printer). |
laser |
HP LaserJet located in the CUBIN lab area. |
Printing
Printing is enabled from all core network hosts that are designated for general use, and the distributed simulation cluster.
To print, you must either use PostScript (PS) or plain-text. You must convert to one of these formats before printing! Once you have your PS or text file, simply use the lpr command to print the document:
lpr mydocument.ps
which will print the file mydocument.ps to the default printer (in this case, the CUBIN printer in the copy room). To direct a print job to a specific printer, you must specify the printer name (see above table) as follows:
lpr -Plaser mydocument.ps
These rules also hold when printing from applications, such as MATLAB. Just before printing, there is usually an opportunity to edit the command used for printing. Simply use one of the above commands as the basis for your setup. The UNIX man page on lpr may prove helpful also.
Checking the print queues
Simply use the command lpq, optionally specifying a specific printer with the -P switch. e.g. to see the print queue for the laser printer in the CUBIN lab,
lpq -Plaser
Canceling a print job
If you are quick enough in deciding to remove a print job before it has reached the printer, and the job is still in the queue, you may cancel it with the lprm command.
Simply specify the printer name on the command line, again with the -P switch, as well as the job number(s) of the print jobs you wish to remove. These numbers can be obtained from the output listing of the lpq command. e.g. to remove job #10 from the print queue for the laser printer in the lab,
lprm -Plaser 10
Alternatively, you may specify a hyphen as a job number and lprm will remove all jobs currently in the queue. e.g. to remove all jobs from the queue on the CUBIN printer (in the copy room),
lprm -