Operating System - HP-UX
1822001 Members
4078 Online
109639 Solutions
New Discussion юеВ

Insert PCL or PJL command in a print file

 
pec
Occasional Advisor

Insert PCL or PJL command in a print file

Hello all,

first sorry for the poor english :)

but i have a hp-ux 11.23 and i need to insert PCL or PJL command to my printer print in duplex mode.

i try to do this steps int this thread
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=895529

but it dont work =(

any idea how i do it ??

thanks in advanced,

6 REPLIES 6
Court Campbell
Honored Contributor

Re: Insert PCL or PJL command in a print file

I am attaching a perl script that has some example pjl/pcl. I usually use it to test different pcl escape sequences. I added two lines for duplexing. Also here is a link to a pcl reference.

http://pcl.to/reference/

You can google for pcl references and find a lot of info. docs.hp.com is also another good place for this.

Anyway, back to the script. edit the script anyway you want, then create a file like so.

# pclprint > test

now you can send it to the printer

# lp -d test

Hope this is what you are looking for.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
pec
Occasional Advisor

Re: Insert PCL or PJL command in a print file

thank├В┬┤s for the information,

but my problem is how i can insert the pcl init sequence in all files print in a printer.

I trying to hack the /etc/lp/interface/ file...

Court Campbell
Honored Contributor

Re: Insert PCL or PJL command in a print file

Knowing more about how users get print jobs submitted would help. For instance, users in my environment submit jobs via an Oracle applications server. The pcl is put in the initialization string for the print driver in Oracle.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
pec
Occasional Advisor

Re: Insert PCL or PJL command in a print file

you are right...

to explain better i am trying aux a client to print in duplex mode, and in her environement he have a baan erp, and making tests direct in baan print script we have better results... =)

pec
Occasional Advisor

Re: Insert PCL or PJL command in a print file

Yesss...

the case was solutioned altering the script from BAAN erp.

look at this page to see the solution,

http://www.baanboard.com/baanboard/archive/index.php/t-80.html


I just insert this sequence \E&l1S at the initpr

initpr=\EE\E&l26a66F\E&l1S\E(12U\E(s10H\E&l5H\E(s0p10h0s0b4099T\E&k11.6H,

thanks for the help,

see ya =)


PEC
pec
Occasional Advisor

Re: Insert PCL or PJL command in a print file

Yesss...

the case was solutioned altering the script from BAAN erp.

look at this page to see the solution,

http://www.baanboard.com/baanboard/archive/index.php/t-80.html


I just insert this sequence \E&l1S at the initpr

initpr=\EE\E&l26a66F\E&l1S\E(12U\E(s10H\E&l5H\E(s0p10h0s0b4099T\E&k11.6H,

thanks for the help,

see ya =)


PEC