Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to set up a fake printer in HP-Unix.. It doesn't need to do any printing but it needs to act as a printer so that an application thinks there is a printer.

Can some help me with a script for that?

share|improve this question

1 Answer 1

# create printer
lpadmin -p printer1 -v /dev/null -m HPLaserJet 

# make it working
accept printer1 
enable printer1 

# Make it a default printer for the whole system (if necessary)
lpadmin -d printer1 

# remove the printer
lpadmin -x printer1

Hope this helps

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.