Printing
How do I print from a UNIX prompt?
To print a PostScript file, you may send it directly to a printer using "lpr -Pprintername filename". For example, if you want to print the file "bigreport.ps" to the printer "b207", you would type:
lpr -Pb207 bigreport.ps
To print a text-only file, you use a2ps, an ASCII to PostScript converter, instead. For example, if you want to print the text file "bigprogram.c" to the printer "typo2", you would type:
a2ps -Ptypo2 bigprogram.c
___________________________________________________
How can I check print jobs from UNIX?
Use the command "lpq -Pprintername". It will display a list of all the print jobs that are currently being handled by the printer. For instance, if you wanted to check the jobs on printer "hw", you would type "lpq -Phw". You would get output similar to the following:
hw is ready and printing
| Rank | Owner | Job | Files | Total Size |
| active | ren | 1567 | u_eediot.ps | 1740 bytes |
| 1st | ren | 1568 | cheesefist.ps | 2389 bytes |
| 2nd | stimpy | 1597 | grittykitty.txt | 1027 bytes |
| 3rd | ren | 1598 | log.txt | 1038 bytes |
___________________________________________________
How can I remove print jobs from UNIX?
Use the command "lprm -Pprintername job#". For example, if stimpy wanted to remove his printer job (see above), he would type "lprm -Phw 1597".
___________________________________________________
How can I print from Windows?
Just use the print command from whatever application you are running. The printer that the output will go to is specified in the printing dialog. If you don't have a printer. Start-Run-\\kinkos\roomnumber you are in.
