Printers and Print Commands
Departments of Mathematics & Statistics,
University of South Carolina
SUN,
Solaris,
SGI
SUN printing
There are a number of print commands depending on what type of files are printed.
-
- For text files:
- lpr filename
prints the text file with no modifications
- a2ps filename
prints two pages of the text file on one piece of paper
-
- For dvi files (that were made by eg. tex or latex):
- dvips filename
prints the dvi file
- dvips2 filename
prints two pages of the dvi file on one piece of paper
-
- For ps files (postscript files, that were made by eg. matlab or maple):
- lpr -PNS1 filename
prints the ps file
In addition to the above, an alternative printer name can be specified between
the print command and the filename, by typing -P followed by the
printer name.
Eg. dvips -Plwp filename, (provided you are allowed to print
on lwp.)
-
SUN printers
- lp line printer - in room 310 - default printer for lpr
- label label printer - in room 310 - default printer for labelpr
- NS1 NeWS-Printer - in room 310 - default printer for a2ps, dvips, dvips2
- NS414 NeWS-Printer - in room 414 - for faculty use only
- sp414 SparcPrinter - in room 414 - letterhead, for faculty use only
- lwp Laser Writer Pro - in room 400 - for Stat. Dept. use only
-
Solaris printing
To print an ASCII or Postscript file:
lp -d printername filename
ex: lp -d NS1 test.ps
To check the print queue of a printer:
lpstat -o printername
ex: lpstat -o NS1
To check your own print job:
lpstat
To remove a print job from the queue:
1. run "lpstat" and get the request-id
2. run "cancel request-id"
ex : lpstat
and you will see:
NS1-4 arabigo!root 29 May 28 13:44
NS1-5 arabigo!minna 29 May 28 13:54
to cancel the job,
ex : cancel NS1-4
|
-------> is from the first column of
the lpstat output (see above)
SGI printing
There are a number of print commands depending on what type of files are printed.
-
- For text files:
- lpr filename
prints the text file with no modifications
- a2ps filename
prints two pages of the text file on one piece of paper
-
- For dvi files (that were made by eg. tex or latex):
- dvips filename
prints the dvi file
- dvips2 filename
prints two pages of the dvi file on one piece of paper
-
- For ps files (postscript files, that were made by eg. matlab or maple):
- lpr -Php313 filename
prints the ps file
In addition to the above, an alternative printer name can be specified between
the print command and the filename, by typing -P followed by the
printer name.
Eg. dvips -PNS414 filename.
-
SGI printers
- hp313 HP Laser Jet - in room 313 - default printer, for research use only
- NS414 NeWS-Printer - in room 414 - for faculty use only