Operating System - HP-UX
1833903 Members
1866 Online
110063 Solutions
New Discussion

Re: Printing to /dev/null

 
Anthony Goonetilleke_1
Regular Advisor

Printing to /dev/null

I was wondering what the easiest way is to setup a phantom printer to print to
/dev/null. We want a certain application to print to an existing printer but
we don't care about the output and want it to disappear into the ether..

Thanks in adv,
AG
3 REPLIES 3
Rick Taylor_5
Advisor

Re: Printing to /dev/null

I believe you can create a local printer using any model script with /dev/null
as the device file.

SAM can do this.
Al Langen_2
Advisor

Re: Printing to /dev/null

Not a problem: edit the /etc/lp/member file to print to /dev/null. This
assumes that the /etc/lp/interface file is printing to your device somewhere.
Anthony Goonetilleke_1
Regular Advisor

Re: Printing to /dev/null

Thanks for to all those who replied but the best way seemed to be something
like

# lpadmin -ptestprt -v/dev/null -mdumb

here are all the steps for completeness.


# lpshut
scheduler stopped
# lpadmin -ptestprt -v/dev/null -mdumb
# lpsched
scheduler is running
# enable testprt
printer "testprt" now enabled
# accept testprt
destination "testprt" now accepting requests

(Thanks to Michael Horan from HP)