<?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: lp queue duplication in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-queue-duplication/m-p/2911719#M107459</link>
    <description>Yes that is how you would do it. Here are the arguments to the interface:&lt;BR /&gt;$1 - Printer Name&lt;BR /&gt;$2 - Request ID&lt;BR /&gt;$3 - User&lt;BR /&gt;$4 - Title (optional - may be "-")&lt;BR /&gt;$5 - Number of copies&lt;BR /&gt;$6 - options&lt;BR /&gt;&lt;BR /&gt;The remaining args are the pathnames of the files to print. You should probably make copies of these files early in the process because the originals will be removed when the print job is finsished.&lt;BR /&gt;</description>
    <pubDate>Mon, 24 Feb 2003 17:31:11 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2003-02-24T17:31:11Z</dc:date>
    <item>
      <title>lp queue duplication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-queue-duplication/m-p/2911714#M107454</link>
      <description>I am wanting to set up another lp destination for testing a report distribution database. I would like to capture everything that is sent to one lp destination, to be sent to this new destination also. Is there an easy way of doing this?&lt;BR /&gt;The only thing I can come up with is renaming the lp command and writing a shell script in the place of lp that just checks looks for the destination and lp's it to the additional destination if it's a match.&lt;BR /&gt;I would prefer not to do this if there is a better way.&lt;BR /&gt;&lt;BR /&gt;Any suggestions?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Dave Parker</description>
      <pubDate>Mon, 24 Feb 2003 16:39:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-queue-duplication/m-p/2911714#M107454</guid>
      <dc:creator>Dave Parker</dc:creator>
      <dc:date>2003-02-24T16:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: lp queue duplication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-queue-duplication/m-p/2911715#M107455</link>
      <description>It should be quite easy to modify the printer's interface file to send the file not only to the original printer but to also send the file to another printer.&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Feb 2003 16:46:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-queue-duplication/m-p/2911715#M107455</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-02-24T16:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: lp queue duplication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-queue-duplication/m-p/2911716#M107456</link>
      <description>.. or .. &lt;BR /&gt;Setup a printer class spool by including more than one printer to this class. When you print to the class it'll be printed to whatever printer you have defined in that class.</description>
      <pubDate>Mon, 24 Feb 2003 16:49:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-queue-duplication/m-p/2911716#M107456</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2003-02-24T16:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: lp queue duplication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-queue-duplication/m-p/2911717#M107457</link>
      <description>Try the 'tee' command.  Do a man on it, but the basic command would be "lp $FILE|tee -a $OTHERFILE".  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Mon, 24 Feb 2003 16:49:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-queue-duplication/m-p/2911717#M107457</guid>
      <dc:creator>Chris Vail</dc:creator>
      <dc:date>2003-02-24T16:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: lp queue duplication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-queue-duplication/m-p/2911718#M107458</link>
      <description>I don't believe setting up a class will work as that will only send it to the first available printer in the class.&lt;BR /&gt;I had considered the tee command, but I cannot change the lp commands issues as there are thousands of them embedded in programs and scripts. Also, many reports originate on other systems (NT &amp;amp; AS/400).&lt;BR /&gt;&lt;BR /&gt;I think that modifying the interface file sounds like a good option. I am presuming I just need to capture the option specified and re-lp it with thos options to my other destination?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Dave.</description>
      <pubDate>Mon, 24 Feb 2003 17:00:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-queue-duplication/m-p/2911718#M107458</guid>
      <dc:creator>Dave Parker</dc:creator>
      <dc:date>2003-02-24T17:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: lp queue duplication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-queue-duplication/m-p/2911719#M107459</link>
      <description>Yes that is how you would do it. Here are the arguments to the interface:&lt;BR /&gt;$1 - Printer Name&lt;BR /&gt;$2 - Request ID&lt;BR /&gt;$3 - User&lt;BR /&gt;$4 - Title (optional - may be "-")&lt;BR /&gt;$5 - Number of copies&lt;BR /&gt;$6 - options&lt;BR /&gt;&lt;BR /&gt;The remaining args are the pathnames of the files to print. You should probably make copies of these files early in the process because the originals will be removed when the print job is finsished.&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Feb 2003 17:31:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-queue-duplication/m-p/2911719#M107459</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-02-24T17:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: lp queue duplication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-queue-duplication/m-p/2911720#M107460</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;What about of create you own lp script file. i.e:&lt;BR /&gt;&lt;BR /&gt;#vi mylp&lt;BR /&gt;&lt;BR /&gt;#$1: main queue&lt;BR /&gt;#$2: second queue&lt;BR /&gt;#$3: file&lt;BR /&gt;#Define any lp options.i.e:&lt;BR /&gt;#OPTIONS="-onb -oc -olandscape"&lt;BR /&gt;OPTIONS=""&lt;BR /&gt;if [ $# -ne 3 ]&lt;BR /&gt;then&lt;BR /&gt;   echo "Usage: $0 &lt;MAIN_QUEUE&gt; &lt;SECOND_QUEUE&gt; &lt;FILE&gt;"&lt;BR /&gt;   exit 99&lt;BR /&gt;fi&lt;BR /&gt;if [ ! -d /var/spool/lp/request/$1 ]&lt;BR /&gt;the&lt;BR /&gt;   echo "Error: $1 is not a valid queue"&lt;BR /&gt;   exit 98&lt;BR /&gt;fi&lt;BR /&gt;if [ ! -d /var/spool/lp/request/$2 ]&lt;BR /&gt;the&lt;BR /&gt;   echo "Error: $2 is not a valid queue"&lt;BR /&gt;   exit 98&lt;BR /&gt;fi&lt;BR /&gt;if [ ! -f $3 ]&lt;BR /&gt;the&lt;BR /&gt;   echo "Error: $1 file not found"&lt;BR /&gt;   exit 98&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;lp -d$1 $OPTIONS $3&lt;BR /&gt;lp -d$2 $OPTIONS $3&lt;BR /&gt;&lt;BR /&gt;Rgds.&lt;/FILE&gt;&lt;/SECOND_QUEUE&gt;&lt;/MAIN_QUEUE&gt;</description>
      <pubDate>Mon, 24 Feb 2003 17:43:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-queue-duplication/m-p/2911720#M107460</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2003-02-24T17:43:46Z</dc:date>
    </item>
  </channel>
</rss>

