1827894 Members
1694 Online
109969 Solutions
New Discussion

Re: PCL COMMANDS

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

PCL COMMANDS

I am trying to send PCL commands directly to a printer. Does anyone out there do such a thing?

It is accepting the commands but it is just printing the command rather than processing it.
UNIX IS GOOD
4 REPLIES 4
John Poff
Honored Contributor

Re: PCL COMMANDS

Hi Robert,

I've done things like this before by using the '-o raw' option on my 'lp' command line. Something like:

lp -dmyprinter -o raw somefile.pcl

JP
Steven E. Protter
Exalted Contributor
Solution

Re: PCL COMMANDS

You have to send escape codes to the printer prior to the commands so they don't print.

http://www.google.com/url?sa=U&start=1&q=http://www.csgnetwork.com/hppclhist.html&e=10342

http://www.google.com/url?sa=U&start=2&q=http://www.digitalissues.co.uk/html/software/utils/pcl_page.html&e=10342

How to use passthrough commmands to send stuff directly to the printer.
http://www.google.com/url?sa=U&start=5&q=http://support.microsoft.com/support/kb/articles/Q96/7/95.ASP&e=10342

I've had to work with this stuff a number of times in my time as a sysadmin. I've always hated it because the documentation was written by people with a poor command of how humans process information.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
John Poff
Honored Contributor

Re: PCL COMMANDS

Robert,

Are you trying to send the commands from a file at the command line, or from inside a script or program?

JP
Alexander M. Ermes
Honored Contributor

Re: PCL COMMANDS

Hi there.
Put the PCL commands in a separate file.
create a little script, that puts this file at the top of a temp file. Copy your text in the line behind the PCL commands.
After this text you should enter the PCL command for a reset to original settings.
Then print the temp file.
Rgds
Alexander M. Ermes

sample


cat LANDSCAPE ${1} > /usr/tmp/out
lp /usr/tmp/out
rm /usr/tmp/out



.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"