<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PCL Code in UNIX in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654214#M41350</link>
    <description>Hi Bill,&lt;BR /&gt;&lt;BR /&gt;Or you can do it like this without vi:&lt;BR /&gt;&lt;BR /&gt;echo "\033&amp;amp;l4H" &amp;gt; tray2.pcl&lt;BR /&gt;&lt;BR /&gt;Now you can use cat:&lt;BR /&gt;&lt;BR /&gt;cat tray2.pcl file-to-print | lpr -Pprinter_name&lt;BR /&gt;&lt;BR /&gt;This not work. &lt;BR /&gt;&lt;BR /&gt;cat:tray2.pcl: No such file or directory</description>
    <pubDate>Thu, 01 Jul 2010 05:03:57 GMT</pubDate>
    <dc:creator>Chicco100</dc:creator>
    <dc:date>2010-07-01T05:03:57Z</dc:date>
    <item>
      <title>PCL Code in UNIX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654206#M41342</link>
      <description>Hello @all,&lt;BR /&gt;&lt;BR /&gt;i have a Problem with the PCL Code. I don't understand, how i use the PCL code in Unix.&lt;BR /&gt;&lt;BR /&gt;I would to change the tray2 to tray1, with the PCL code. I use for this ^[&amp;amp;l4H and ^[&amp;amp;l1H. &lt;BR /&gt;&lt;BR /&gt;In unix i try: echo ^[&amp;amp;l4H &lt;FILE_NAME&gt; |lpr -Pprinter_name, but doesn't works.&lt;BR /&gt;&lt;BR /&gt;Can anyone help me please?????&lt;BR /&gt;&lt;BR /&gt;THX&lt;/FILE_NAME&gt;</description>
      <pubDate>Tue, 29 Jun 2010 07:12:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654206#M41342</guid>
      <dc:creator>Chicco100</dc:creator>
      <dc:date>2010-06-29T07:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: PCL Code in UNIX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654207#M41343</link>
      <description>The echo command above would just echo the file name out to a piece of paper. Does it actually print from the correct tray?&lt;BR /&gt;&lt;BR /&gt;You should put the PCL codes into two files, and use the cat command&lt;BR /&gt;&lt;BR /&gt;cat &lt;TRAY1_FILE&gt; &lt;FILE_NAME&gt; | lpr ....&lt;/FILE_NAME&gt;&lt;/TRAY1_FILE&gt;</description>
      <pubDate>Tue, 29 Jun 2010 11:04:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654207#M41343</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2010-06-29T11:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: PCL Code in UNIX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654208#M41344</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1276536871023+28353475&amp;amp;threadId=127230" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1276536871023+28353475&amp;amp;threadId=127230&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;rgs,</description>
      <pubDate>Tue, 29 Jun 2010 11:41:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654208#M41344</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2010-06-29T11:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: PCL Code in UNIX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654209#M41345</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;following thread discuses about the using PCL with lp command in UNIX:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1276536871023+28353475&amp;amp;threadId=127230" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1276536871023+28353475&amp;amp;threadId=127230&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bhadresh</description>
      <pubDate>Tue, 29 Jun 2010 12:26:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654209#M41345</guid>
      <dc:creator>Bhadresh</dc:creator>
      <dc:date>2010-06-29T12:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: PCL Code in UNIX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654210#M41346</link>
      <description>&amp;gt; In unix i try: echo ^[&amp;amp;l4H &lt;FILE_NAME&gt; |lpr -Pprinter_name, but doesn't works.&lt;BR /&gt; &lt;BR /&gt;Are you running HP-UX or Linux? HP-UX uses the SysV print spooler and the command is lp, not lpr.&lt;BR /&gt; &lt;BR /&gt;PCL is just a series of special codes that are inserted in front (or sometimes in the middle) of the print job. NOTE: the code ^[ usually refers to the escape (ESC) character so it must be represented correctly. There are a couple of ways to do this, but this is the most portable:&lt;BR /&gt; &lt;BR /&gt;echo "\027&amp;amp;l4H"&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;For use with HP-UX or Linux, you can do this (ASSUMING you are using a POSIX shell such as ksh):&lt;BR /&gt; &lt;BR /&gt;( echo "\027&amp;amp;l4H" ; cat &lt;FILE_NAME&gt; ) | lpr -Pprinter_name&lt;BR /&gt; &lt;BR /&gt;This will insert the appropriate codes in front of the file to be printed.&lt;/FILE_NAME&gt;&lt;/FILE_NAME&gt;</description>
      <pubDate>Tue, 29 Jun 2010 13:37:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654210#M41346</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-06-29T13:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: PCL Code in UNIX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654211#M41347</link>
      <description>What printscheduler are you using? You might use CUPS on HP-UX, for instance. That has some influence on what command you need to use.&lt;BR /&gt;&lt;BR /&gt;But since you use lpr, why not try something like a '-o tray2' option for the lpr command?&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jun 2010 05:45:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654211#M41347</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2010-06-30T05:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: PCL Code in UNIX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654212#M41348</link>
      <description>How can I creat a PCL-file? I write the PCL-Code in VI.&lt;BR /&gt;&lt;BR /&gt;cat &lt;VI_FILE with="" pcl="" code=""&gt; &lt;PRINT_FILE&gt; | lpr -Pprinter don't work.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRINT_FILE&gt;&lt;/VI_FILE&gt;</description>
      <pubDate>Wed, 30 Jun 2010 08:47:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654212#M41348</guid>
      <dc:creator>Chicco100</dc:creator>
      <dc:date>2010-06-30T08:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: PCL Code in UNIX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654213#M41349</link>
      <description>In vi, you use the CTRL-v key to remove the special meaning from the next character. So to put in the codes: ESC &amp;amp;l4H, you star with a blank file, type i to insert characters, then CTRL-v then the ESCAPE key (which puts ^[ on your screen) followed by &amp;amp;l4H. Then press the  ESCAPE key again and save the file.&lt;BR /&gt; &lt;BR /&gt;Or you can do it like this without vi:&lt;BR /&gt; &lt;BR /&gt;echo "\033&amp;amp;l4H" &amp;gt; tray2.pcl&lt;BR /&gt; &lt;BR /&gt;Now you can use cat:&lt;BR /&gt; &lt;BR /&gt;cat tray2.pcl file-to-print | lpr -Pprinter_name&lt;BR /&gt; &lt;BR /&gt;Note: lpr is not lp. On HP-UX, lpr is a wrapper for lp that emulates lpr. However, -otray2 is not valid for the lpr wrapper and won't work on HP-UX if you do not access the HP printer directly with HPPI software.</description>
      <pubDate>Wed, 30 Jun 2010 14:08:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654213#M41349</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-06-30T14:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: PCL Code in UNIX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654214#M41350</link>
      <description>Hi Bill,&lt;BR /&gt;&lt;BR /&gt;Or you can do it like this without vi:&lt;BR /&gt;&lt;BR /&gt;echo "\033&amp;amp;l4H" &amp;gt; tray2.pcl&lt;BR /&gt;&lt;BR /&gt;Now you can use cat:&lt;BR /&gt;&lt;BR /&gt;cat tray2.pcl file-to-print | lpr -Pprinter_name&lt;BR /&gt;&lt;BR /&gt;This not work. &lt;BR /&gt;&lt;BR /&gt;cat:tray2.pcl: No such file or directory</description>
      <pubDate>Thu, 01 Jul 2010 05:03:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654214#M41350</guid>
      <dc:creator>Chicco100</dc:creator>
      <dc:date>2010-07-01T05:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: PCL Code in UNIX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654215#M41351</link>
      <description>The printer prints the Pcl File.&lt;BR /&gt;&lt;BR /&gt;/033&amp;amp;l4H &lt;BR /&gt;the printer not understand the pcl code.&lt;BR /&gt;&lt;BR /&gt;I do all, but i have no success. :(&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Jul 2010 08:09:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654215#M41351</guid>
      <dc:creator>Chicco100</dc:creator>
      <dc:date>2010-07-01T08:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: PCL Code in UNIX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654216#M41352</link>
      <description>&lt;!--!*#--&gt;&amp;gt; The printer prints the Pcl File.&lt;BR /&gt;&amp;gt; &lt;BR /&gt;&amp;gt; /033&amp;amp;l4H&lt;BR /&gt;&lt;BR /&gt;I can't see what's in your "Pcl File".&lt;BR /&gt;&lt;BR /&gt;      man od&lt;BR /&gt;&lt;BR /&gt;      od -c &lt;THE pcl="" file=""&gt;&lt;BR /&gt;&lt;BR /&gt;You did notice that "\033" and "/033" are&lt;BR /&gt;different, right?&lt;BR /&gt;&lt;BR /&gt;I can't see exactly what you did with your&lt;BR /&gt;"Pcl File".  As usual, showing actual&lt;BR /&gt;commands with their actual output can be&lt;BR /&gt;more helpful than vague descriptions and&lt;BR /&gt;interpretations.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; the printer not understand the pcl code.&lt;BR /&gt;&lt;BR /&gt;I also know nothing about your printer.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I do all, but i have no success. :(&lt;BR /&gt;&lt;BR /&gt;"all"?  Really?  Then I guess that there's no&lt;BR /&gt;reason to continue trying.&lt;/THE&gt;</description>
      <pubDate>Thu, 01 Jul 2010 12:44:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654216#M41352</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-07-01T12:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: PCL Code in UNIX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654217#M41353</link>
      <description>Hi,&lt;BR /&gt;I meant \ 033 but it does not work. The printer prints just the PCL file. But does not interpret the code. Our printer is a HP Laserjet 4650 and is a network printer. I did it like in the example of Bill</description>
      <pubDate>Thu, 01 Jul 2010 13:01:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654217#M41353</guid>
      <dc:creator>Chicco100</dc:creator>
      <dc:date>2010-07-01T13:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: PCL Code in UNIX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654218#M41354</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] I did it like in the example of Bill &lt;BR /&gt;&lt;BR /&gt;Which part of this was not clear?:&lt;BR /&gt;&lt;BR /&gt;--------&lt;BR /&gt;&lt;BR /&gt;I can't see what's in your "Pcl File".&lt;BR /&gt;&lt;BR /&gt;      man od&lt;BR /&gt;&lt;BR /&gt;      od -c &lt;THE pcl="" file=""&gt;&lt;BR /&gt;&lt;BR /&gt;[...]&lt;BR /&gt;&lt;BR /&gt;I can't see exactly what you did with your&lt;BR /&gt;"Pcl File".  As usual, showing actual&lt;BR /&gt;commands with their actual output can be&lt;BR /&gt;more helpful than vague descriptions and&lt;BR /&gt;interpretations.&lt;BR /&gt;&lt;BR /&gt;--------&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] HP Laserjet 4650 [...]&lt;BR /&gt;&lt;BR /&gt;Ok.  So the specs say that it can do "HP PCL&lt;BR /&gt;6, HP PCL 5c (Web download), HP postscript&lt;BR /&gt;level 3 emulation, native PDF printing,&lt;BR /&gt;[...]".  If you're sending it PostScript,&lt;BR /&gt;then trying to throw in some PCL may not be&lt;BR /&gt;the best way to get the desired result.  But&lt;BR /&gt;I don't know what you're actually sending it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For the record, I was looking at these&lt;BR /&gt;printer specs:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h10010.www1.hp.com/wwpc/us/en/sm/WF06a/18972-236251-236268-15077-f58-375773.html" target="_blank"&gt;http://h10010.www1.hp.com/wwpc/us/en/sm/WF06a/18972-236251-236268-15077-f58-375773.html&lt;/A&gt;&lt;/THE&gt;</description>
      <pubDate>Thu, 01 Jul 2010 13:25:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654218#M41354</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-07-01T13:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: PCL Code in UNIX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654219#M41355</link>
      <description>The specs for this printer says PCL6 (not good for Unix) and PCL 5c (no clue as to whether this is standard PCL. Sorry to bear the bad news but unless a printer is plain old PCL 5 or less, the printer may not be able to be controlled by 'normal' codes. Although you said this is on the network, are you printing directly to the printer or are you printing to a print server such as Windows which then sends the file to your printer?&lt;BR /&gt; &lt;BR /&gt;More and more printers from HP are being designed without ASCII capability. PCL1 through PCL4 are plain ASCII with extensions in the form of escape sequences. PCL5 (no suffix like 5c or 5e) is also OK, but PCL6 and beyond are proprietary codes that require a special driver -- mostly for current Windows only.&lt;BR /&gt; &lt;BR /&gt;So back to the original question, what does the command: uname -a return?</description>
      <pubDate>Thu, 01 Jul 2010 22:27:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654219#M41355</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-07-01T22:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: PCL Code in UNIX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654220#M41356</link>
      <description>uname -a &lt;BR /&gt;Linux ***** 2.6.5-7.312-bigsmp #1 SMP Fri Jun 6 13:44:33 UTC 2008 i686 i686 i386 GNU/Linux&lt;BR /&gt;&lt;BR /&gt;I print without a print server&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Jul 2010 05:38:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654220#M41356</guid>
      <dc:creator>Chicco100</dc:creator>
      <dc:date>2010-07-02T05:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: PCL Code in UNIX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654221#M41357</link>
      <description>&amp;gt; uname -a&lt;BR /&gt;&amp;gt; Linux &lt;BR /&gt; &lt;BR /&gt;That would have helped a lot at the beginning. This is not the Linux forum - it is for HP-UX. That's why all the references to the lp command and printer scripts for JetDirect printers.&lt;BR /&gt; &lt;BR /&gt;You'll need the CUPS system installed and configured for your printer. Check this page:&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://www.cups.org" target="_blank"&gt;http://www.cups.org&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;and specifically:&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://www.cups.org/documentation.php/options.html" target="_blank"&gt;http://www.cups.org/documentation.php/options.html&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;You'll need a PPD file for your 4650. Then you can use the -o options. Use the lpoptions command to see what is available for this printer.</description>
      <pubDate>Fri, 02 Jul 2010 11:01:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654221#M41357</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-07-02T11:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: PCL Code in UNIX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654222#M41358</link>
      <description>Sorry Sorry!! It was a misunderstanding. &lt;BR /&gt;&lt;BR /&gt;But now its work with the Option command</description>
      <pubDate>Mon, 05 Jul 2010 08:49:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654222#M41358</guid>
      <dc:creator>Chicco100</dc:creator>
      <dc:date>2010-07-05T08:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: PCL Code in UNIX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654223#M41359</link>
      <description>This link might be useful to you and also to the people who have helped you solve this question...&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://forums13.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums13.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;</description>
      <pubDate>Mon, 05 Jul 2010 22:36:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654223#M41359</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-07-05T22:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: PCL Code in UNIX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654224#M41360</link>
      <description>Ok, Thank you Bill!</description>
      <pubDate>Tue, 06 Jul 2010 05:26:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pcl-code-in-unix/m-p/4654224#M41360</guid>
      <dc:creator>Chicco100</dc:creator>
      <dc:date>2010-07-06T05:26:30Z</dc:date>
    </item>
  </channel>
</rss>

