Welcome

Science Life in Pasadena

Logistics of  SSC/IPAC life
Life in Pasadena / L.A.

     For everything from cars,
     banks to housing questions
     consult the:

     TECHNIQUE
Computers





Printers

Printers/Printing:

  1. How do I find the name of the printer?
  2. How do I view the print queue?
  3. How do I remove a print job from the printer?
  4. Can I set-up my .cshrc file to define my default printer?
  5. How do I print a postscript file?
  6. How do I print plain ascii files?
  7. How do I print double-sided (duplex)?

1. What is the name of the printer?

Under UNIX, type the command: lpget list. This will return a listing of printers you can use. For example, my office is KS 241, and so I use the printer "ks245" for b/w printing, and "ks245color" for color printing.

2. How do I view the print queue?

Under UNIX, from the command line type: lpq -P printer_name. For example, to see the print queue on printer "ks245", type: lpq -P ks245

3. How do I remove a print job from the printer?

You first need to know what is the number of the print job, and then you remove the jobs with cancel. You can determine the print job number with the lpq command (see question 3 above).

An example is in order. Suppose you type lpq -P ks245 and see the following output:

sscsci26% lpq -P ks245
ks245 is ready and printing
Rank Owner Job Files Total Size
active squires 455 rdcs_p1.ps 12250718 bytes
    

Then, to cancel the job, type: cancel ks245-455

4. Can I set-up my .cshrc file to define my default printer?

Suppose you want your default printer to be "ks245".  Then add the following lines to my .user.pre.cshrc file:

setenv PRINTER ks245
alias lpr 'lpr -P ks245'
alias lprc 'lpr -P ks245color'
alias lpq 'lpq -P ks245'

5. How do I print a postscript file?

Under UNIX, from the command line type:
lp -d printer_name your_file.ps

6. How do I print double-sided (duplex)?

There are a number of double-sided printers available.  In general, if there is a "d"  at the end of the printer name, it will print in duplex.  For example:

lpr -P ks320d filename.ps

Currently such printers in Keith Spaulding are:
color146d:
color210hd:
ks245d:
ks270d:
ks320d:
ks345d:
laser146d:
laser162d:
laser210hd: