<?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: Printing to a specific tray? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-to-a-specific-tray/m-p/3581648#M230003</link>
    <description>This is just off the top of my head, and I haven't tested it:&lt;BR /&gt;&lt;BR /&gt;cat &lt;PRINT file=""&gt; | \&lt;BR /&gt;  sed s/1BE/^]&amp;amp;l5G\&lt;BR /&gt;  1BE/ | lp -d&lt;PRINTER&gt;&lt;BR /&gt;&lt;BR /&gt;The replace is with an Escape&amp;amp;l5G (Ctrl-V Esc &amp;amp;  ell 5 G)&lt;BR /&gt;&lt;BR /&gt;I hope this helps and I haven't confused you.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Steven&lt;BR /&gt;&lt;BR /&gt;&lt;/PRINTER&gt;&lt;/PRINT&gt;</description>
    <pubDate>Thu, 14 Jul 2005 13:38:38 GMT</pubDate>
    <dc:creator>Procnus</dc:creator>
    <dc:date>2005-07-14T13:38:38Z</dc:date>
    <item>
      <title>Printing to a specific tray?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-to-a-specific-tray/m-p/3581643#M229998</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;For all you printing experts!&lt;BR /&gt;&lt;BR /&gt;A colleague has a customer running HPUX who want to use tray 2 (this is the headed paper tray) on their printer every time the line "1BE" is at the top of a page to be printed. The default tray is tray 4. This is probably straight forward but my printing experience is zero!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Aidan</description>
      <pubDate>Wed, 13 Jul 2005 07:41:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-to-a-specific-tray/m-p/3581643#M229998</guid>
      <dc:creator>AIMC</dc:creator>
      <dc:date>2005-07-13T07:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Printing to a specific tray?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-to-a-specific-tray/m-p/3581644#M229999</link>
      <description>lp -obin#&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 13 Jul 2005 07:50:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-to-a-specific-tray/m-p/3581644#M229999</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-07-13T07:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Printing to a specific tray?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-to-a-specific-tray/m-p/3581645#M230000</link>
      <description>This script is my attempt to pick up the 1BE part of your question.  There are probably better ways to do this.&lt;BR /&gt;&lt;BR /&gt;It is run with two arguments: lp1BE -dprinter filename&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;TOPLINE=`head -1 $2`&lt;BR /&gt;if [ "$TOPLINE" = "1BE" ]&lt;BR /&gt;then&lt;BR /&gt;lp -obin2 $1 $2&lt;BR /&gt;else&lt;BR /&gt;lp $1 $2&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Cheers</description>
      <pubDate>Wed, 13 Jul 2005 09:05:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-to-a-specific-tray/m-p/3581645#M230000</guid>
      <dc:creator>Gavin Clarke</dc:creator>
      <dc:date>2005-07-13T09:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Printing to a specific tray?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-to-a-specific-tray/m-p/3581646#M230001</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks Pete &amp;amp; Gavin,&lt;BR /&gt;&lt;BR /&gt;The lp -d -obin# seems to work for some files but not others, there are some PCL commands? attached to the top of files to be printed so i think they may have to look at this before anything else.&lt;BR /&gt;&lt;BR /&gt;Aidan</description>
      <pubDate>Wed, 13 Jul 2005 09:31:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-to-a-specific-tray/m-p/3581646#M230001</guid>
      <dc:creator>AIMC</dc:creator>
      <dc:date>2005-07-13T09:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Printing to a specific tray?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-to-a-specific-tray/m-p/3581647#M230002</link>
      <description>Could you attach an example of one that doesn't work please?&lt;BR /&gt;Just so people can look and suggest options.&lt;BR /&gt;&lt;BR /&gt;I'm thinking perhaps sed might be able to do something here.</description>
      <pubDate>Thu, 14 Jul 2005 01:06:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-to-a-specific-tray/m-p/3581647#M230002</guid>
      <dc:creator>Gavin Clarke</dc:creator>
      <dc:date>2005-07-14T01:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Printing to a specific tray?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-to-a-specific-tray/m-p/3581648#M230003</link>
      <description>This is just off the top of my head, and I haven't tested it:&lt;BR /&gt;&lt;BR /&gt;cat &lt;PRINT file=""&gt; | \&lt;BR /&gt;  sed s/1BE/^]&amp;amp;l5G\&lt;BR /&gt;  1BE/ | lp -d&lt;PRINTER&gt;&lt;BR /&gt;&lt;BR /&gt;The replace is with an Escape&amp;amp;l5G (Ctrl-V Esc &amp;amp;  ell 5 G)&lt;BR /&gt;&lt;BR /&gt;I hope this helps and I haven't confused you.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Steven&lt;BR /&gt;&lt;BR /&gt;&lt;/PRINTER&gt;&lt;/PRINT&gt;</description>
      <pubDate>Thu, 14 Jul 2005 13:38:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-to-a-specific-tray/m-p/3581648#M230003</guid>
      <dc:creator>Procnus</dc:creator>
      <dc:date>2005-07-14T13:38:38Z</dc:date>
    </item>
  </channel>
</rss>

