From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076340321829.tru64-unix-managers.marc@archive.invalid> From: Kevin Reardon Date: Mon, 28 Oct 1996 15:45:59 +0000 To: tru64-unix-managers Subject: SUMMARY: selecting printer paper trays X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076340321829 My original question, in summary, was how to direct a print jobs to a specific paper tray on the destination printer (a DECLaser 3500 in this case). There are options listed for doing this in lpr, but they do not work. First, several people pointed out that certain lpr commands (-Itray, -Oorientation) simply do not work for jobs across the network. Several people recommended using the 'lpspr' command found in the PrintServer Software (LPSBASE), which I found on the Software Product Library CD (1 of 4). However, the using 'lpspr -Itop', the job simply got lost at the printer because lpspr was sending the job to tray #1, which is nonexistent. A little trial and error showed that the top tray was accessed through the #0 (obviously printer dependent!), but for which there was no option in lpspr. Looking at the output from lpspr, the relevant line that is needs to be added to the beginning of a PostScript file is: statusdict begin 0 setpapertray end To print any PostScript file to the top tray, simply cat the following two lines to the front of the PS file and pipe it to lpr: %!PS-Adobe-1.0 statusdict begin 0 setpapertray end When printing a text file, this command can be included automatically using GNU enscript (ASCII to PostScript converter) with the following command (or set in $HOME/.enscriptrc): enscript -Ssetpapertray:0 filename.txt Sorry for the delay in the summary and thanks to all who gave me pointers. Now I put paper that has already been printed on one side in the top tray and regular paper in the bottom tray. Depending on what I'm printing, I can choose the type of paper on which to print it and maybe save a tree or two. GNU Enscript can be found at http://www.hut.fi/~mtr/genscript/index.html Thanks, kevin reardon Respondents were: Hellebo Knut Thierry DOCHY Lucien_HERCAUD@paribas.com (Lucien HERCAUD) David Pesticcio "Juergen Bock" Gerhard Nolte Original question in full: > I am having a problem sending print jobs to different paper trays using > lpr. I have a DECLaser 3500 with Network Interface Card and two paper trays > (plus the manual/multipurpose feeder) running on our local network. I'm > trying to print from an AlphaServer 1000 runing DU 3.2. In lpr, there is > the option to specify which paper tray to use with the -I option (e.g. lpr > -Iupper). However, no matter how I set up the printer, host resident, NIC > resident, the output always comes out of the default paper cassette. In the > spooled job, I get the right command in the /var/spool/printer/cf* file, > namely, a line " I can select different paper trays from my Macintosh and it works fine, so > I know the capability is alive and well. Any ideas?