From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078718211982.tru64-unix-managers.marc@archive.invalid> From: Malcolm Condie Date: Wed, 26 Aug 1998 23:56:56 +0000 To: tru64-unix-managers Subject: SUMMARY formatting on remote printers X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078718211982 Dear All DU folk, Thank you all for your quick and most helpful and problem-solving ideas. Specifically: Ian Mortimer, Sue Gray (BOTH good Down Under folk), Tom Webster, Mark Zander, Doug Johnson, Aideen McConville Arena Vincenzo and Jim Smart. Original query: >Dear DU folk, > I have DU4.0D running on Alpha/SERVER 800 5/400 boxes. > I am trying to send print jobs to a remote printer (HP jetdirect boxes / >cards) and format / change orientation of same jobs. I believe that by using >remote printing there is no direct way of using the "if" and "of" parameters in >/etc/printcap. I have tried setting up an intermediate, direct, print queue which >and then pass the print jobs to the remote queue, but again with little >success. > The print jobs are sent to Unix spooler via "lpr -Pqueue_name" > Using "-O [landscape|portrait] option with lpr does not work. > Can anyone point me in the right direction of how to either rotate the >jobs using lpr, or within printcap, or how to use pseudo print queue to on->pass jobs to remote print queue. Any help much apprecviated. > >Example of remote printer setting in printcap is: > >lp20|20|queue20:\ > :lf=/usr/adm/lp20err:\ > :lp=:\ > :rm=hpjetbox1:\ > :rp=raw1:\ > :sh:\ > :sd=/usr/spool/lpd20: > >Other DU boxes have earlier Unix and Lat-connected printers. No sweat with >these as we change "pw" and "pl" to rotate the jobs. > > ANSWER Three possibilities. First, and simplest and immediately adopted: Add entry to /etc/services myservice 9100/tcp then change /etc/printcap entry "lp" to :lp=@printserver/myservice:\ and add :ct=tcp:\ This institutes telnet printing through unix port direct to HP card and also allows for filtering, rotation etc. Second, and it appears most widely adopted elsewhere Create pseudo, local, print queue using "of" parm as pointer to user-created script which filters print job through user-created filter-file (various options from file with full escape sequences to file with just "^L", and pipes that output through lpr to basic remote print queue. Example of "of=/usr/lbin/myfilter:\" file /bin/cat - /usr/lbin/formfeed | lpr -Premote formfeed file only has "^L" contect. A little more difficult to manage but allows for good maleability. Third, and total problem-solving option but a little bit of work: Trash BSD's LPR and replace with LPRng. LPRng's site is: http://www.astart.com/lprng/LPRng.html As yet not installed this but have downloaded. For all who have adopted above two options give this site a read, the product looks pretty smart. Again thanks all. I found a few similar questions in archives but nothing that quite solved my problem. I hope this summary is helpful and correct.