Operating System - HP-UX
1834208 Members
2637 Online
110066 Solutions
New Discussion

Re: adding a printer that does a cat

 
Osiris Guzman
Occasional Contributor

adding a printer that does a cat

How would you add a spool printer that executes a cat command?
3 REPLIES 3
John Bolene
Honored Contributor

Re: adding a printer that does a cat

I don't understand the question.

Printers print streams of data that are sent to them.

A process can do the cat and send it to the printer.

Otherwise, there are other ways of skinning a cat, but more information is needed.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Jesper Sivertsen
Frequent Advisor

Re: adding a printer that does a cat

Hi there
Add a printer using sam og lpadmin to the device /dev/null and the printer type "dumb".
After this you can change the interface-script in /etc/lp/interface/. In this script there is a cat command that you can modyfy to you use.
Good luck
Jesper
All in unix is files
Larry Basford
Regular Advisor

Re: adding a printer that does a cat

lpshut
lpadmin -pprintername -v/dev/pts/td -mdumb
lpsched

I did a tty to find my port then chmod 777 /dev/ttytd

print jobs print to my screen.

Maybe this will help. Not sure what you want.
Desaster recovery? Right !