Operating System - HP-UX
1836371 Members
2310 Online
110100 Solutions
New Discussion

Re: lp request copy to 2 printer

 
Tonny Sejr Kromann
Frequent Advisor

lp request copy to 2 printer

Hi

How can I make a request going to one print queue also go to another queue/printer?
We cannot, easily, modify the application to create requests for the 2 printers.
We need this feature to debug unreliable printing.
hp-ux 11.11, networked HP printers.

--
Thanks in advance
Tonny
1 REPLY 1
Tonny Sejr Kromann
Frequent Advisor

Re: lp request copy to 2 printer

I found out that I could modify the printers script in /etc/lp/interface.

In this script, after the rlp command, I
* copy the printfile
* print to new destination also
* remove copied printfile

/usr/sbin/rlp -I$requestid .....$1
cp -p $1 /tmp/XX
/usr/bin/lp -dNEWPRINTER /tmp/XX
rm /tmp/XX

--
Best regards
Tonny