I am having difficulty sending a control sequence ESC&l5H (print to middle tray) to a HP printer (lp4).It is ignoring the command. I am using the following syntax in an executable file :
echo "'/033'&l5H" > /dev/lp4
lp -dlp4 filename
a) Is /033 'escape' ?
b) What is the correct syntax ?
Did you get an answer to this?
We are on digital unix and we use \E&l5H
If you can find a manual for the printer the pcl commands are listed in the back....
I'm not sure what you are trying to accomplish using the echo. I've only been doing this for a few years, but I think the echo won't set the printer. We usually use pre-defined drivers with pcl or a script to do this.
Here is an example of a few lines from a script to setup a printer for landscape. We have an iteractive menu driven script for our end users to direct and print files.