<?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: Need some help for scripting in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-help-for-scripting/m-p/2840156#M90988</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;A variant to John's script.&lt;BR /&gt;&lt;BR /&gt;Send all files to the printers in one request:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh &lt;BR /&gt;&lt;BR /&gt;PRINTERS="prt1 prt2 prt3" &lt;BR /&gt;MYFILES="myfile1 myfile2 myfile3" &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for p in $PRINTERS &lt;BR /&gt;do &lt;BR /&gt;lp -d${p} $MYFILES &lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;With this you should have fever print requests running.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 06 Nov 2002 21:13:48 GMT</pubDate>
    <dc:creator>Leif Halvarsson_2</dc:creator>
    <dc:date>2002-11-06T21:13:48Z</dc:date>
    <item>
      <title>Need some help for scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-help-for-scripting/m-p/2840154#M90986</link>
      <description>I need to send some specific files to approximately 70 printers. Can any one please guide me to write the script for that?&lt;BR /&gt;&lt;BR /&gt;Sandip</description>
      <pubDate>Wed, 06 Nov 2002 19:22:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-some-help-for-scripting/m-p/2840154#M90986</guid>
      <dc:creator>Sandip Ghosh</dc:creator>
      <dc:date>2002-11-06T19:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help for scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-help-for-scripting/m-p/2840155#M90987</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Here is one try at it:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;PRINTERS="prt1 prt2 prt3"&lt;BR /&gt;MYFILES="myfile1 myfile2 myfile3"&lt;BR /&gt;&lt;BR /&gt;for f in $MYFILES&lt;BR /&gt;do&lt;BR /&gt;    for p in $PRINTERS&lt;BR /&gt;    do&lt;BR /&gt;        lp -d${p} $f&lt;BR /&gt;    done&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Since you have 70 printers, you could put them into a text file, call it PRINTERS, with a line for each printer name.  Then you can pull that into a variable for the printer name like this:&lt;BR /&gt;&lt;BR /&gt;PRINTERS=$(&lt;PRINTERS&gt;&lt;/PRINTERS&gt;&lt;BR /&gt;and replace the PRINTERS= line in the script with that.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Nov 2002 19:20:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-some-help-for-scripting/m-p/2840155#M90987</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2002-11-06T19:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help for scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-help-for-scripting/m-p/2840156#M90988</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;A variant to John's script.&lt;BR /&gt;&lt;BR /&gt;Send all files to the printers in one request:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh &lt;BR /&gt;&lt;BR /&gt;PRINTERS="prt1 prt2 prt3" &lt;BR /&gt;MYFILES="myfile1 myfile2 myfile3" &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for p in $PRINTERS &lt;BR /&gt;do &lt;BR /&gt;lp -d${p} $MYFILES &lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;With this you should have fever print requests running.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Nov 2002 21:13:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-some-help-for-scripting/m-p/2840156#M90988</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2002-11-06T21:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help for scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-help-for-scripting/m-p/2840157#M90989</link>
      <description>Actually these are label printers and the most interesting is that if you send the label formats simultaneously it can't digest. So I have to give a "sleep 10" in between two format.&lt;BR /&gt;&lt;BR /&gt;Anyway thanks to all of you.&lt;BR /&gt;&lt;BR /&gt;Sandip</description>
      <pubDate>Wed, 06 Nov 2002 21:31:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-some-help-for-scripting/m-p/2840157#M90989</guid>
      <dc:creator>Sandip Ghosh</dc:creator>
      <dc:date>2002-11-06T21:31:15Z</dc:date>
    </item>
  </channel>
</rss>

