Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
# 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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .