Operating System - HP-UX
1833390 Members
3205 Online
110052 Solutions
New Discussion

Re: intergrating printer interface with command

 
Gerald Taylor
Frequent Advisor

intergrating printer interface with command

I would like to intergrate a command into a printer interface script. The command I would like to execute when performing a lp -dprintername will be: cat filename | remsh servername 'np -q queuename "-G -l parameter_list"'

This command allows me to print remotely to a machine running Xprint. Is there any way I could put this into a printer interface script in order to execute the command lp -dprinter filename. If anyone has done something similar or knows how to perform this function it would be greatly appreciated
1 REPLY 1
Charles Floss
New Member

Re: intergrating printer interface with command

Have you looked at the files in /usr/spool/lp/model? I seems to me that you could use the rmodel script as a model to create your own interface script that would use your desired command string. The rmodel script is used for remote printing.