Unofficial Andrew Unix Cluster Printing HOWTO --------------------------------------------- The version of klpr distributed on the Andrew Unix machines is rather broken, lacking many necessary features provided by the Windows and Mac clients provided by Computing Services. This is an attempt to fix some of the issues. Note that all of these utilities work with postscript, and all (except for lpr) expect input on STDIN and will produce output on STDOUT. DISCLAIMER: Computing Services does not support these utilities in any way. I (jgrafton) am offering them myself and I do not guarantee that they will work properly. To the best of my knowledge they work as intended, but if you find examples of where they fail please let me know and I will try to work out the bugs. 1. Printing to a different user > ~jgrafton/public/bin/lpr -U username I have built a slightly modified version of LPRng which will let any user change the user to whom a print job is directed. The default print queue is presently andrew@printing.andrew.cmu.edu. e.g. if you are trying to print to a PlaidCa$h card, use the following: > ~jgrafton/public/bin/lpr -U guest somefile.ps 2. Selecting duplex or simplex printing > ~jgrafton/public/bin/duplex (copied from ~nwf/public/bin/duplex) > ~jgrafton/public/bin/simplex The Wean clusters at least will somewhat randomly decide to print your job either duplex or simplex but will still charge you the amount for simplex. To make printing more deterministic (and to get the right amount charged to your account), use one of these commands in passing your job to lpr. e.g. to print a duplex job > ~jgrafton/public/bin/duplex < somefile.ps | ~jgrafton/public/bin/lpr 3. Printing multiple copies of a job > ~jgrafton/public/bin/copies n Giving the -#n option to lpr does not seem to influence how many copies of your job should be printed. There is a bit of postscript which seems to accomplish this however, so you can use this script to automate it for you. Note that you should be careful with simplex/duplex copies here: if you do not specify, you may get 10 pages double-sided with 2 copies each of your document. e.g. to print 20 copies of this document > enscript -p - ~jgrafton/public/printing.HOWTO | ~jgrafton/public/bin/simplex | ~jgrafton/public/bin/copies 20 | ~jgrafton/public/bin/lpr For those curious, my version of lpr has a manpage available at ~jgrafton/LPRng/man/man1/lpr.1 Credits: Thanks to edanaher and nwf for assistance with duplex printing and various scripts written. Questions, Comments: Email jgrafton@andrew.