<?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: read values from a text file. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/read-values-from-a-text-file/m-p/4538796#M678640</link>
    <description>&lt;!--!*#--&gt;&amp;gt;am not getting the file updated. i.e. pingerr and output.&lt;BR /&gt;&lt;BR /&gt;You probably need to append:&lt;BR /&gt;while read ip; do&lt;BR /&gt;   /usr/sbin/ping ${ip} -n 3 2&amp;gt;&amp;gt; pingerr | tee -a output&lt;BR /&gt;done &amp;lt; /tmp/ipfile</description>
    <pubDate>Tue, 24 Nov 2009 08:23:23 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2009-11-24T08:23:23Z</dc:date>
    <item>
      <title>read values from a text file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/read-values-from-a-text-file/m-p/4538791#M678635</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I need to customize the script&lt;BR /&gt;##################&lt;BR /&gt;clear&lt;BR /&gt;echo "Enter IP or x to quit &amp;gt; \c"&lt;BR /&gt;while read ip&lt;BR /&gt;do&lt;BR /&gt;[ "${ip}" = "x" ] &amp;amp;&amp;amp; exit 0&lt;BR /&gt;/opt/OV/bin/snmpwalk -c test ${ip}|more&lt;BR /&gt;echo "Enter IP or x to quit &amp;gt; \c"&lt;BR /&gt;done&lt;BR /&gt;##########################&lt;BR /&gt;In this script i need to press x and enter the ip address.Instead of that i need to read the ipaddress from a text file and execute the command.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;Th</description>
      <pubDate>Tue, 24 Nov 2009 05:25:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/read-values-from-a-text-file/m-p/4538791#M678635</guid>
      <dc:creator>Soul_1</dc:creator>
      <dc:date>2009-11-24T05:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: read values from a text file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/read-values-from-a-text-file/m-p/4538792#M678636</link>
      <description>Do this:&lt;BR /&gt;&lt;BR /&gt;while read ip&lt;BR /&gt;do&lt;BR /&gt;[ "${ip}" = "x" ] &amp;amp;&amp;amp; exit 0&lt;BR /&gt;/opt/OV/bin/snmpwalk -c test ${ip}|more&lt;BR /&gt;echo "Enter IP or x to quit &amp;gt; \c"&lt;BR /&gt;done &amp;lt; ip_addr_file</description>
      <pubDate>Tue, 24 Nov 2009 05:28:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/read-values-from-a-text-file/m-p/4538792#M678636</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2009-11-24T05:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: read values from a text file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/read-values-from-a-text-file/m-p/4538793#M678637</link>
      <description>&lt;!--!*#--&gt;&amp;gt;Patrick: Do this:&lt;BR /&gt;&lt;BR /&gt;Since you are reading from a file, there is probably no need for the check for "x" and the echo:&lt;BR /&gt;while read ip; do&lt;BR /&gt;   /opt/OV/bin/snmpwalk -c test ${ip} | more&lt;BR /&gt;done &amp;lt; ip_addr_file&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Nov 2009 06:02:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/read-values-from-a-text-file/m-p/4538793#M678637</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-11-24T06:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: read values from a text file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/read-values-from-a-text-file/m-p/4538794#M678638</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;Thanks for the response,&lt;BR /&gt;&lt;BR /&gt;Its working fine.Please take this example.I want to redirect the err to one file and normal; o/p to another.&lt;BR /&gt;################################&lt;BR /&gt;clear&lt;BR /&gt;while read ip; do&lt;BR /&gt;/usr/sbin/ping ${ip} -n 3 $2&amp;gt;pingerr|tee $1&amp;gt;output&lt;BR /&gt;done &amp;lt; /tmp/ipfile&lt;BR /&gt;####################################&lt;BR /&gt;please correct this if i went wrong some where.b'coz am not getting the file updated .i.e pingerr and output.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Nov 2009 06:52:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/read-values-from-a-text-file/m-p/4538794#M678638</guid>
      <dc:creator>Soul_1</dc:creator>
      <dc:date>2009-11-24T06:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: read values from a text file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/read-values-from-a-text-file/m-p/4538795#M678639</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] $2&amp;gt;pingerr|tee $1&amp;gt;output&lt;BR /&gt;&lt;BR /&gt;Do you mean "2&amp;gt;" and "1&amp;gt;"?&lt;BR /&gt;&lt;BR /&gt;      man &lt;YOUR_SHELL&gt;&lt;/YOUR_SHELL&gt;</description>
      <pubDate>Tue, 24 Nov 2009 07:18:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/read-values-from-a-text-file/m-p/4538795#M678639</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-11-24T07:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: read values from a text file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/read-values-from-a-text-file/m-p/4538796#M678640</link>
      <description>&lt;!--!*#--&gt;&amp;gt;am not getting the file updated. i.e. pingerr and output.&lt;BR /&gt;&lt;BR /&gt;You probably need to append:&lt;BR /&gt;while read ip; do&lt;BR /&gt;   /usr/sbin/ping ${ip} -n 3 2&amp;gt;&amp;gt; pingerr | tee -a output&lt;BR /&gt;done &amp;lt; /tmp/ipfile</description>
      <pubDate>Tue, 24 Nov 2009 08:23:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/read-values-from-a-text-file/m-p/4538796#M678640</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-11-24T08:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: read values from a text file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/read-values-from-a-text-file/m-p/4538797#M678641</link>
      <description>Hello,&lt;BR /&gt;preparare a file with the listf of IPs and x at the end:&lt;BR /&gt;255.255.1.2&lt;BR /&gt;255.255.1.3&lt;BR /&gt;x&lt;BR /&gt;&lt;BR /&gt;run your script (without changing it!!!) using the file created:&lt;BR /&gt;&lt;BR /&gt;your_script&lt;INPUT file="" /&gt;&lt;BR /&gt;No changes to your script, no need to retest it. (you can countinue to use it in interactive mode as before)&lt;BR /&gt;first priciple of the programmers:&lt;BR /&gt;never touch working script!&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Wed, 25 Nov 2009 09:07:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/read-values-from-a-text-file/m-p/4538797#M678641</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2009-11-25T09:07:47Z</dc:date>
    </item>
  </channel>
</rss>

