Hi Managers,
It was proposed to to use printers as TCP/IP printers (thanks to Jesper
Frank Nemholt). This will be a good solution in most cases.
Unfortunately I have the situation, that printjobs are not only sent to remote
printers connected directly to the network. But some of the printers are connected to
computers, printservers etc. These servers are not under my administration but they accept printjobs on port 515.
Is there a way to configure a TCP/IP print queue to send jobs to lpd on port 515?
I found out that lpd on Tru64 v5.1 does not like the printcap entry ":lp=/dev/null:".
I tried to debug and replaced it by ":lp=/dev/console:" and the queue started to work
properly. Obviously this can't be the solution - any ideas?
Regards,
Thomas Voegeli
Nemholt, Jesper Frank wrote:
>Setup the printers as TCP/IP printers (also known as telnet printers)
>where you define them with IP and port number (_at_hostname/servicename)
>with servicename defined as a tcp or udp port in /etc/services.
>
>A TCP/IP printer can be setup with filtering using just one queue.
>
>I haven't tried this in 5.x, but in 4.0F with success. It also looks
>much nicer than two queues for one printer.
>
>--
>Un saludo / Venlig hilsen / Regards
>
>Jesper Frank Nemholt
>Unix System Manager
>Compaq Computer Corporation
>
>Phone : +34 699 419 171
>E-Mail: JesperFrank.Nemholt_at_compaq.com
>
>>-----Original Message-----
>>From: Thomas Voegeli [mailto:tv.pop_at_zuvrz.unizh.ch]
>>Sent: Thursday, November 22, 2001 4:03 PM
>>To: tru64-unix-managers_at_ornl.gov
>>Subject: Tru64 V5.1 lpd how to filter printjobs for remote printers
>>
>>
>>Hi Managers,
>>
>>I have to filter print jobs directed to remote printers.
>>Because this is
>>not supported by lpd on Tru64 unix
>>I implemented the following solution:
>>
>>printcap entry:
>>---------------
>>lp0|testp:\
>> :lp=/dev/null:\
>> :sd=/usr/spool/lp0:\
>> :if=/usr/local/bin/localfilter:
>>
>>lp1|remoteprinter:\
>> :rm=remoteprinteraddress:\
>> :rp=raw:\
>> :sd=/usr/local/spool/lp1:
>>
>>localfilter:
>>-------------
>>cat /usr/lbin/extrafile - | lpr -h -Premoteprinter && exit 0 || exit 2
>>
>>This worked well with Tru64 Unix 4.0F but it does not work with Tru64
>>Unix 5.1.
>>
>>On Unix 5.1 printqueue lp0 seems to hang and at the lpr.log I can see
>>the message
>>ERROR -- close_trace: close(1) failed -- print queue may hang, error:
>>Connection reset by peer
>>
>>Any ideas how I can filter printjobs forn nonlocal printers
>>on Tru64 v5.1?
>>
>>Tank you
>>
>>Thomas Voegeli
>>
>>
>
>
Received on Fri Nov 23 2001 - 11:04:07 NZDT