To print a document, use the lpr (for 'lineprinter') command. A specific printer is selected with the -P<printername> argument as follows:
lpr -Proom106 <documentname>
We currently have 2 print queues that can be accessed directly from the Sun and Linux machines. (To print from the SGI's, see the info below on printing PostScript files.) Neither of these is a PostScript printer, so don't send them PostScript files:
room119 2 Epson FX1170 dot matrix Room 119 room106 2 Panasonic KXP1124i dot matrix Room 106
Room119 is the default printer, so if you don't specify a printer name with the -P option to any of the lp commands, room119 is assumed.
To see a status report of any printer available on the system use the lpq command:
lpq -Proom106
Here is what you might see as the result of an lpq command:
room106 is ready and printing Rank Owner Job Files Total Size active ARSENA42 256 DEPREERR.CPP 60 bytes 1st ajalbert 25 ftp.note 607 bytes
To delete a print job, you type:
lprm -P{printer} {job number}
So typing lprm -Proom106 25 will remove the file ftp.note from the queue.
To remove all of the print jobs that you own type:
lprm -P{printer} -
Make sure you attempt the lprm from the same machine from which you submitted the job. You will get a permission denied error message if you attempt it from another machine.
Printing PostScript
To print PostScript files you need to download the file to a PC and print it from the PC. This is inconvenient but necessary because of the way we quota laser printer usage.
Log into a PC and ftp to gandalf.umcs.maine.edu. You can then log into your account and transfer the files you want to print. FTPing is further detailed in a separate chapter. To print the files from the PC type:
COPY FILENAMEPRN
An alternative to printing PostScript files is to view them using:
ghostview <filename>
On the SGI's use:
xpsview <filename>
Please try to only print things that you absolutely need printed. Careless printing is a waste of resources.