Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hp-UX Printing 1

Status
Not open for further replies.

smicro

MIS
Dec 26, 2002
281
US
Anyone know how to print to a file rather than a printer in HP-UX 11.11?
 
Try this:

Code:
touch /tmp/testprinter
chown lp:lp /tmp/testprinter
lpshut
lpadmin -ptestprinter -v/tmp/testprinter -mdumb
lpsched
accept testprinter
enable testprinter
ls -l | lp -d testprinter

Annihilannic.
 
Looks good thanks Annihilannic. Just want to verify that this wont affect any other printers on our system? Thanks.
 
Unless you already happen to have a print queue called "testprinter", no... except for that brief moment between lpshut and lpsched when the LP daemon isn't running, no-one will be able to print.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top