Operating System - HP-UX
1752353 Members
6517 Online
108787 Solutions
New Discussion юеВ

Re: redirect lp to /dev/null

 
SOLVED
Go to solution
Bernd Dittmar
Advisor

redirect lp to /dev/null

I'v createt a rprinter (dummy).
All output should be redirectet to /dev/null, so that the queue is empty.
Don't want to "cancel dummy".
How to configure ?
BaaN IV on HP-UX
3 REPLIES 3
Elmar P. Kolkman
Honored Contributor
Solution

Re: redirect lp to /dev/null

Depends on how the printer was created but this is what I would do if I wanted this:

Go to /etc/lp/interface and edit the file dummy that should be there.
By putting 'exit 0' at the second line no output will be send anywhere. Or you could put 'cat >/dev/null;exit 0' there.
Every problem has at least one solution. Only some solutions are harder to find.
Chris Wilshaw
Honored Contributor

Re: redirect lp to /dev/null

You should just be able to use

lpadmin -pdummy -v/dev/null -mdumb

Re: redirect lp to /dev/null

I'm not sure if I understand the question. However, if your goal is to send all print request to the dummy printer you created call dummy to /dev/null. Then here is your answer.
ln -s /dev/null /var/spool/lp/request/dummy

This will symbolically link the print requests for printer dummy to /dev/null.