<?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: Script Help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3718344#M252292</link>
    <description>ksh</description>
    <pubDate>Thu, 26 Jan 2006 14:25:56 GMT</pubDate>
    <dc:creator>Nobody's Hero</dc:creator>
    <dc:date>2006-01-26T14:25:56Z</dc:date>
    <item>
      <title>Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3718342#M252290</link>
      <description>What does this mean in a script?&lt;BR /&gt;&lt;BR /&gt;if [ "ping_status" ]; &lt;BR /&gt;</description>
      <pubDate>Thu, 26 Jan 2006 13:56:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3718342#M252290</guid>
      <dc:creator>Nobody's Hero</dc:creator>
      <dc:date>2006-01-26T13:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3718343#M252291</link>
      <description>&lt;BR /&gt;Which Script was it , perl , ksh ,sh ? &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards ..bl.</description>
      <pubDate>Thu, 26 Jan 2006 14:20:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3718343#M252291</guid>
      <dc:creator>baiju_3</dc:creator>
      <dc:date>2006-01-26T14:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3718344#M252292</link>
      <description>ksh</description>
      <pubDate>Thu, 26 Jan 2006 14:25:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3718344#M252292</guid>
      <dc:creator>Nobody's Hero</dc:creator>
      <dc:date>2006-01-26T14:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3718345#M252293</link>
      <description>Robert,&lt;BR /&gt;&lt;BR /&gt;I can't decipher the [, &amp;amp;#93.  Did you cut and paste, by any chance or is that the way it appears in the script?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 26 Jan 2006 14:30:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3718345#M252293</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2006-01-26T14:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3718346#M252294</link>
      <description>The [ is really the square intro bracket [ and the 93 ]&lt;BR /&gt;&lt;BR /&gt;Cut 'n'paste issue in the forums...&lt;BR /&gt;&lt;BR /&gt;if [ "ping_status" ];&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Jan 2006 14:31:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3718346#M252294</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-01-26T14:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3718347#M252295</link>
      <description>Provide the complete script, I guess there is a mistake/typo in what you have pasted..!! &lt;BR /&gt;&lt;BR /&gt;Chan</description>
      <pubDate>Thu, 26 Jan 2006 14:33:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3718347#M252295</guid>
      <dc:creator>Chan 007</dc:creator>
      <dc:date>2006-01-26T14:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3718348#M252296</link>
      <description>#! /bin/sh&lt;BR /&gt;&lt;BR /&gt;host=`cat ipfile`&lt;BR /&gt;for item in $host&lt;BR /&gt;do&lt;BR /&gt;echo "Checking $host..."&lt;BR /&gt;ping_status=`ping $host 10|grep 'no answer'`&lt;BR /&gt;if [ "ping_status" ]; then&lt;BR /&gt;echo "$host NOT RESPONDING"&lt;BR /&gt;echo " "&lt;BR /&gt;continue&lt;BR /&gt;fi&lt;BR /&gt;echo "$host UP"&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Jan 2006 14:34:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3718348#M252296</guid>
      <dc:creator>Nobody's Hero</dc:creator>
      <dc:date>2006-01-26T14:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3718349#M252297</link>
      <description>Should be:&lt;BR /&gt;&lt;BR /&gt;#! /bin/sh&lt;BR /&gt;&lt;BR /&gt;host=`cat ipfile`&lt;BR /&gt;for item in $host&lt;BR /&gt;do&lt;BR /&gt;echo "Checking $host..."&lt;BR /&gt;ping_status=`ping $host 10|grep 'no answer'`&lt;BR /&gt;if [ "ping_status" ]; then&lt;BR /&gt;echo "$host NOT RESPONDING"&lt;BR /&gt;echo " "&lt;BR /&gt;continue&lt;BR /&gt;fi&lt;BR /&gt;echo "$host UP"&lt;BR /&gt;&lt;BR /&gt;It is checking for a condition - if ping_status contains "no answer" then it will echo $host not responding.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Thu, 26 Jan 2006 14:37:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3718349#M252297</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-01-26T14:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3718350#M252298</link>
      <description>Robert,&lt;BR /&gt;&lt;BR /&gt;The test part (if statement) is missing some constructs alongwith an else and done statements.&lt;BR /&gt;&lt;BR /&gt;=============================================&lt;BR /&gt;#! /bin/sh&lt;BR /&gt;&lt;BR /&gt;host=`cat ipfile`&lt;BR /&gt;for item in $host&lt;BR /&gt;do&lt;BR /&gt;echo "Checking $host..."&lt;BR /&gt;ping_status=`ping $host 10|grep 'no answer'`&lt;BR /&gt;if [ "$ping_status" ]; then&lt;BR /&gt;echo "$host NOT RESPONDING"&lt;BR /&gt;else&lt;BR /&gt;echo "$host UP"&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;=============================================&lt;BR /&gt;&lt;BR /&gt;cheers!</description>
      <pubDate>Thu, 26 Jan 2006 15:26:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3718350#M252298</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-01-26T15:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3718351#M252299</link>
      <description>Just realized this is for solaris - your if statement should have -ne 0&lt;BR /&gt;&lt;BR /&gt;#! /bin/sh&lt;BR /&gt;&lt;BR /&gt;host=`cat ipfile`&lt;BR /&gt;for item in $host&lt;BR /&gt;do&lt;BR /&gt;echo "Checking $host..."&lt;BR /&gt;ping_status=`ping $host 10|grep 'no answer'`&lt;BR /&gt;if [ "ping_status" -ne 0 ]; then&lt;BR /&gt; echo "$host NOT RESPONDING"&lt;BR /&gt; echo " "&lt;BR /&gt; continue&lt;BR /&gt;fi&lt;BR /&gt;echo "$host UP"&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Thu, 26 Jan 2006 16:39:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3718351#M252299</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-01-26T16:39:10Z</dc:date>
    </item>
  </channel>
</rss>

