# # PCL6 problems
APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

2005/05/06 PCL6 Problems

I've removed advertising from most of this site and will eventually clean up the few pages where it remains.

While not terribly expensive to maintain, this does cost me something. If I don't get enough donations to cover that expense, I will be shutting the site down in early 2020.

If you found something useful today, please consider a small donation.



Some material is very old and may be incorrect today

© May 2005 Tony Lawrence

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

If you found something useful today, please consider a small donation.



Got something to add? Send me email.





(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

->
-> PCL6 problems


Inexpensive and informative Apple related e-books:

iOS 10: A Take Control Crash Course

Take Control of Automating Your Mac

Photos for Mac: A Take Control Crash Course

Sierra: A Take Control Crash Course

Are Your Bits Flipped?





More Articles by © Tony Lawrence





Printer Friendly Version

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





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)




Linux posts

Troubleshooting posts


This post tagged:

Printing



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode