Intro to Using EECS Workstations

Version 2.0
2.4 Printing [Back to Homepage]


To print postscript files, use the lp command:

lp foo.ps

To specify a printer, use the -d flag. For example, if you want to print to lw274 (in 274 Soda):

lp -d lw274 foo.ps

Other printers are lw330 in 330 Soda and lw199 in 199 Cory.

If the file is a text file, you can use lp, but enscript is better because the output has better format and can save paper, too.

enscript -2rG foo.txt

Do not use enscript for a binary file however. For example, for Adobe Acrobat (.pdf) files, print from within Acrobat Reader. If you enscript a binary file, the printer spit out many pages of junk.


Managing Print Jobs

After you send the print command, your file will be on the print queue. This is the line for print jobs waiting to be printed. To see the print queue status, use:

lpstat

Or, if you specified a different printer, use:

lpstat -o lw274

This is useful so you can estimate when your job will be done. You can go pick up your papers right away before it gets tossed into the piles of papers that tend to accumulate next to the printers, thus making the problem worse. (Side rant: Be nice to the environment by not wasting paper. Pick up your print jobs. And don't toss other people's print jobs into random piles so that they'll lose it and have to re-print, thus wasting more paper.)

On the topic of not wasting paper, if you decide you don't want your print job after all, cancel your job. Use:

cancel job-id-number

where job-id-number is the number corresponding to your job on the queue (use lpstat to see).

If you want to cancel all your jobs at once, use:

cancel -u $USER
©Copyright 2001, Richard Shiao. All rights reserved. Please send comments to: [email protected]
Hosted by www.Geocities.ws

1