From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078614710528.tru64-unix-managers.marc@archive.invalid> From: david.w.chapman () USSEV ! mail ! abb ! com Date: Wed, 23 Jul 1997 12:18:10 +0000 To: tru64-unix-managers Subject: SUMMARY: Printing problem X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078614710528 What I ended up doing was to use the Emulex software to set up six different queues (3 portrait and 3 landscape) by changing the prefix control string (pcs) in each queue: This will print portrait, 10 characters per inch, 6 lines per inch # ** |w_st2| entry maintained by Emulex Installation Program ** # server type =NETQue # printer interface type =centronics # server physical port number =1 # transmit mode =Text w_st2|w_st2|Emulex network printer on port 1:\ :lp=/dev/w_st2:\ :sd=/usr/spool/w_st2:\ :of=/adm/emlx/bin/rprint:\ :mx#0:\ :pw#0:\ :emlx_n=130.110.41.41:\ :emlx_pcs=\033E\033&l0o6D\033(10U\033&k0S\012:\ :emlx_scs=\033E\012:\ :emlx_p=2501: Thanks for the two responses that I got: >From belonis @ dirac.phys.washington.edu: No local processing is possible for a remote printer. Instead you have to fake a local printer (output device /dev/null) and in an 'if=' (or 'of=' ?) you can process it as you like and then lpr it to the real remote queue. Belonis >From Martin.Scott @ vw.com: *David, *I got this from DEC. I have not tried it, my customer decided to do it a different way. I hope helps. *Martin Scott -------------------------------------------------------------------------------- Scott, Martin From:*pitt@csc32.enet.dec.com%smtp [pitt@csc32.enet.dec.com%smtp at x400po] Sent:*Friday, June 27, 1997 10:54 AM To:*TSC::martin.scott@dcuh029.dcu.ps.net%smtp Cc:*PITT@csc.cxo.dec.com%smtp Subject:*Pre-Process print job to remote printer Example of how to *pre-process* a print job through a printcap entry. Question: How can you send *lpr* switches to a remote printer in Digital UNIX (OSF)? For instance, how can you print landscape orientation on a remote printer? Answer: When printing to a remote printer, most printcap parameters are ignored by lpr. Also, for remote printers, very few lpr command line switches are recognized. The printcap entry for selecting landscape orientation (setting *pw* to something greater than 80), and the lpr *-w* switch are ignored for remote printers. (Remote printers are those whose printcap entries contain *rm* and *rp*.) To resolve this issue, create a *pass-through* printcap entry that first changes the orientation to landscape and then sends the print job to the original remote entry. As an example, assume your remote printer entry looks like this. lp5|5|dot matrix printer:\ lf=/usr/adm/lp5err:\ lp=:\ rm=tom.digital.com:\ (or rm=printername and rp=lp2:\ rp=text or postscript) sd=/usr/spool/lpd5: Create another printcap entry that looks like this. lp8|8|pass-through entry:\ lp=/dev/null:\ mx#0:\ of=/usr/lbin/passtolp5:\ sd=/usr/spool/lpd8: Then create a file called /usr/lbin/passtolp5 that looks like this. Make sure the mode of this file is 755! --------------- cut here ------------- #!/bin/csh -f /bin/cat | /usr/lbin/ -w132 | lpr -P5 --------------- cut here ------------- Note: The must be one that supports going to landscape orientation when the page width is set to something bigger that 80. Now, to print landscape orientation to printer lp5, do the following: # lpr -P8 filename If you want to print portrait orientaion to printer lp5, do the following: # lpr -P5 filename Original Question: > I have a HP LaserJet III printer connected to our network > with a NETQue printer server (Emulex Corp.). > A user wants to be able to change from portrait to landscape > and/or 66 lines per page to 88 lines per page using lpr command > line options. > Is this possible for a remote printer? > Here is the printcap entry: > (As configured by Emulex software) > > # ** |w_st2| entry maintained by Emulex Installation Program ** > # server type =NETQue > # printer interface type =centronics > # server physical port number =1 > # transmit mode =Text > w_st2|w_st2|Emulex network printer on port 1:\ > :lp=/dev/w_st2:\ > :sd=/usr/spool/w_st2:\ > :of=/adm/emlx/bin/rprint:\ > :mx#0:\ > :pw#0:\ > :emlx_n=130.110.41.41:\ > :emlx_p=2501: > > I'm still at Digital UNIX V3.0 > > Thanks in advance! > > Dave Chapman > david.w.chapman@ussev.mail.abb.com