Operating System - HP-UX
1752810 Members
5665 Online
108789 Solutions
New Discussion юеВ

PCL and printing from Unix to a HP4000

 
G.J. de Bruijn
New Member

PCL and printing from Unix to a HP4000

Hi,

Does anybody know if I can use PCL printer commands in a script. The output from the script is redirected to a HP4000 printer. I want to print the output in Landscape format.

Thanks!

Gerko de Bruijn
2 REPLIES 2
Andreas Voss
Honored Contributor

Re: PCL and printing from Unix to a HP4000

Hi,

that is possilble but when you have set up you printer queue correct you can use an option for the lp command to print in landcape:
lp -olandscape

Regards
Lawrence Mahan
Frequent Advisor

Re: PCL and printing from Unix to a HP4000

If this is a shell script use
echo "033n"

If this is a flat file then in vi

v

You can also hand write a print driver with just the PCL command you need starting with the dumb drivers. Just add the echos before and after the cat command.