PCL6 can cause problems for Unix machines that want to send text files or even files with "normal" HP escape sequences inserted. That's because PCL6 is much more like Windows GDI than anything else - it's binary commands rather than escape sequences. If the printer defaults to PCL6 mode, it will error out or refuse a simple text file.
Fortunately, the fix is easy: preface each job with the escape sequence that selects PCL5 mode. That's ESC % 0 A ESC E, so a shell script using "netcat" might just do this:
shift shift shift shift shift cat /usr/lib/selectpcl5 $* | netcat -h dell1 -p 9100
Previously we would have created selectpcl5 with:
# bash echo -e "\033%0A\033E\c" > /usr/lib/selectpcl5 # sh echo "\033%0A\033E\c" > /usr/lib/selectpcl5
I had this problem recently with a Dell 3100 printer..
Read more about PCL history here
Got something to add? Send me email.
More Articles by Tony Lawrence © 2012-07-18 Tony Lawrence
Show me your flowchart and conceal your tables, and I shall continue to be mystified. Show me your tables, and I won't usually need your flowchart; it'll be obvious. (Fred Brooks, The Mythical Man Month)
Printer Friendly Version
PCL6 and Unix Copyright © May 2005 Tony Lawrence
Have you tried Searching this site?
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.
Contact us
Printer Friendly Version