Operating System - HP-UX
1846645 Members
2339 Online
110256 Solutions
New Discussion

Re: UNIX printer interface files adding ESC codes

 
SOLVED
Go to solution
Peter Day
New Member

UNIX printer interface files adding ESC codes

Can I add ESC codes to a UNIX remote printer interface file? I want to specify "landscape" and "ledger" to a remote queue on Novell. I know the escape codes and have been able to add them to the head of the HPGL spool file that I want to print but I want the interface file to do this if I can.
Thanks
1 REPLY 1
Andreas Voss
Honored Contributor
Solution

Re: UNIX printer interface files adding ESC codes

Hi,

you can edit the /etc/lp/interface/ script as follows:
Before the line:
/usr/sbin/rlp -I............
insert:
{
echo ""
cat $1
} >$1.tmp
mv $1.tmp $1

Within the {} you could add anything to put into the printfile.

Regards