<?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: Help in writing script. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-writing-script/m-p/4455278#M679906</link>
    <description>or you could do:&lt;BR /&gt;&lt;BR /&gt;nohup ./yourscript &amp;gt; somefile &amp;amp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;then: &lt;BR /&gt;&lt;BR /&gt;tail -f somefile &lt;BR /&gt;&lt;BR /&gt;will show you all results up to the current and continue to follow the file.  you could also log out and come back an examine it later if needed...</description>
    <pubDate>Thu, 09 Jul 2009 19:06:43 GMT</pubDate>
    <dc:creator>OldSchool</dc:creator>
    <dc:date>2009-07-09T19:06:43Z</dc:date>
    <item>
      <title>Help in writing script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-writing-script/m-p/4455274#M679902</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;i am not at all exposed to this scriting.But i tried to write one small script.&lt;BR /&gt;################&lt;BR /&gt;#this is a test snmp script&lt;BR /&gt;clear&lt;BR /&gt;read IP&lt;BR /&gt;/opt/OV/bin/snmpwalk -c cmstrread $IP&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;###########&lt;BR /&gt;&lt;BR /&gt;It worked fine.But now my requirement is to give multiple input.i.e once this is completed it should wait for the net input.&lt;BR /&gt;&lt;BR /&gt;Please help regarding this.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance..!!</description>
      <pubDate>Wed, 08 Jul 2009 06:31:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-in-writing-script/m-p/4455274#M679902</guid>
      <dc:creator>Soul_1</dc:creator>
      <dc:date>2009-07-08T06:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help in writing script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-writing-script/m-p/4455275#M679903</link>
      <description>Try this:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&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 cmstrread ${ip}&lt;BR /&gt;        echo "Enter IP or x to quit &amp;gt; \c"&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Wed, 08 Jul 2009 07:07:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-in-writing-script/m-p/4455275#M679903</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2009-07-08T07:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help in writing script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-writing-script/m-p/4455276#M679904</link>
      <description>Thanks a lot..!!&lt;BR /&gt;&lt;BR /&gt;It worked well.&lt;BR /&gt;&lt;BR /&gt;It would be more helpful if it met another requirement.&lt;BR /&gt;&lt;BR /&gt;since the o/p of this snmpwalk is too large and i have to wait for a long time .&lt;BR /&gt;&lt;BR /&gt;i want to to stop this process in middle and it should ask for the next input and run the same command again.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;is it possible..??</description>
      <pubDate>Wed, 08 Jul 2009 07:18:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-in-writing-script/m-p/4455276#M679904</guid>
      <dc:creator>Soul_1</dc:creator>
      <dc:date>2009-07-08T07:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help in writing script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-writing-script/m-p/4455277#M679905</link>
      <description>&amp;gt;I want to to stop this process in middle and it should ask for the next input &lt;BR /&gt;&lt;BR /&gt;You could do:&lt;BR /&gt;/opt/OV/bin/snmpwalk -c cmstrread ${ip} | more&lt;BR /&gt;&lt;BR /&gt;If you type "q" to more, it will quit.</description>
      <pubDate>Wed, 08 Jul 2009 07:56:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-in-writing-script/m-p/4455277#M679905</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-08T07:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help in writing script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-writing-script/m-p/4455278#M679906</link>
      <description>or you could do:&lt;BR /&gt;&lt;BR /&gt;nohup ./yourscript &amp;gt; somefile &amp;amp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;then: &lt;BR /&gt;&lt;BR /&gt;tail -f somefile &lt;BR /&gt;&lt;BR /&gt;will show you all results up to the current and continue to follow the file.  you could also log out and come back an examine it later if needed...</description>
      <pubDate>Thu, 09 Jul 2009 19:06:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-in-writing-script/m-p/4455278#M679906</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2009-07-09T19:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help in writing script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-writing-script/m-p/4455279#M679907</link>
      <description>&amp;gt;OldSchool: tail -f somefile &lt;BR /&gt;&lt;BR /&gt;The benefits of my more above is that when you quit, you go on to the next file.  The con is that the buffer may get full and so it waits.&lt;BR /&gt;Or you could put it in a file and use vi to skip the next output.</description>
      <pubDate>Fri, 10 Jul 2009 04:52:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-in-writing-script/m-p/4455279#M679907</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-10T04:52:30Z</dc:date>
    </item>
  </channel>
</rss>

