Currently, there are two public-use printers available in the Department of Mathematics.
lab - located in the grad lab
mail - located in mail room
Ensuring that the print job goes to the right printer can be accomplished in several ways:
- If you set the
LP_DESTvariable to the name of the printer you want to use, most print commands will send the print job there. (The
PRINTERvariable has the same effect as the
- Each time you queue a print job, you can use a command-line option to decide where to send your print job.
Setting Environment VariablesThe method for setting environment variables differs depending on whether you are using the Bourne Shell (or one of its derivatives) or the C Shell (or one of its derivatives).
If you are using the Bourne Shell, you must issue the following command at the prompt to set the
printermust be replaced by the name of the destination printer, either
If you are using the C Shell, issue the following command:Again, replace
setenv LP_DEST printer
printerby the name of the printer you want to use.
Sending Documents to a PrinterThere are several different families of commands which can be used in the printing process. They are,
Note that the BSD and System V family of commands can be used to print text and PostScript only. E.g., if you want to print a dvi file using these commands, you must first convert it to PostScript using
- the BSD family of commands,
- the System V family of commands, and
- a locally installed perl script named
The BSD family of commands include
lpris used to send a job to the printer. Simply type,This will send
filenameto the printer specified by
LP_DEST. You may use the
Poption to specify which printer you want the job to go to,will send
lpr -P2225 filename
LP_DESTis set to.
lpqis used to get information about the printer, it also uses the
lprmis used to cancel a print job, but it does not work reliably, so do not use it.
The System V family of commands include
lpfunctions in the same way as
lpr, with the exception that
Poption is replaced by
lpstatcommand is functionally equivalent to
cancelis functionally equivalent to
lprm(except that it actually works).
For more information on any of these commands, use the
mancommand. Finally, there is the locally installed perl scriptIf you want to send
filenameto a particular printer, simply use the
Poption, as follows.
print -Pprinter filename
What about printing pdf files?Use acroread to open the file. Select
file, printand change the Printer command to
printeris the name of the printer you would like to print to. [ example]