For the most part if you can use pico to view the file, use
"lp -d (file)". However if you cannot, such as a .pdf file, then you must
use a specified viewer to print that file, such as acrobat reader for a
.pdf file.
How to print
Printing is not as difficult as it may seem.
Which queue should I use?
If you want only one side of the page to have ouput on
it, use the
icl2 queue. If you want both sides to have output, use
the icl2_duplex queue. In all of the following examples, I will
use the icl2 queue. The icl2_duplex can be freely substituted.
How to send files to the printer
If you are printing multiple files, they will come
out much faster if you put them all on one command line!
Text files
These files are just plain ascii text, such as C files,
Matlab files, and FAQs.
enscript -Picl2 filename1 filename2 filename3 ... or, lp -d icl2 filename1 filename2 filename3 ... Examples
PDF files
To print a PDF file, you must use the Adobe Acroread
program. At the command prompt, type: acroread < filename.pdf >.
Then from the menu bar, select File:Print. You may need to tell it the
printer name (either icl2 or icl2_duplex). DO NOT print a PDF file using
the lp command!!! You will be responsible for the killing of trees if you
do.
Printing from Netscape
Select File and then Print from the menu bar. Then in
the edit box labeled Print Command, type:
lp -d icl2
Printing from Matlab
Just type print to print the most recent plot. To activate
an old plot so that you can print it, type:
figure(x), where x is the number of the plot
you wish to activate.
Print mail from Pine
First you need to setup pine to print. Follow these steps:
1. From the main menu, push s for setup. 2. Then press P for printer. 3. Go down to "Personally selected print command"
and press A, for add printer. 4. For "Enter printer name: " type icl2 and return. 5. For "Enter command for printer: " type lp and
return. 6. Press E to exit. 7. Press Y to accept changes. From then on, Pine should be set up. Press % to print
a message.
Postscript files
These files are formatted text and graphics and end in
.ps lp -d icl2 filename1 filename2 filename3 ... Examples
Image files
Gif and Jpeg images.
--at command prompt type: xv
--right click on xv window to bring up xv-controls window
--click on load button to load your image file
--click on print button
Handy Print Script
Here is a little script that aids in printing text files
with out all the strange enscript commands. The file is aprint,
copy the file into your home directory (from this page, place the pointer
over the file and hold down the shift-key and the left mouse button, now
save the file) To make it work chmod 755 aprint. Now run aprint -h for
help on the options.
How to check the status of files that have been sent
To check to see where your files are in the queue, or
if they got there at all, use lpstat. This command displays the
queue for you.
How to remove files that have been sent
To remove a file, first find out what its job number
is. This is accomplished by using lpstat (explained above), and
looking at the number directly to the right of your login name. To cancel
that job, type cancel and the job number. For example, for job "icl2-100":
cancel icl2-100
How to check your quota status
Type: showquota to see how much you have printed
this semester. The accounting is accurate up to the hour.