<?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: ping-t script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-t-script/m-p/3237102#M173032</link>
    <description>thanks for this answer.&lt;BR /&gt;but can you write it without using "do" or "while".&lt;BR /&gt;</description>
    <pubDate>Thu, 01 Apr 2004 12:57:53 GMT</pubDate>
    <dc:creator>mo jaber</dc:creator>
    <dc:date>2004-04-01T12:57:53Z</dc:date>
    <item>
      <title>ping-t script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-t-script/m-p/3237100#M173030</link>
      <description>I need a script that recievs an IP adress and a number of seconds (X secodns). and every X seconds reports if the IP replies.</description>
      <pubDate>Thu, 01 Apr 2004 12:42:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ping-t-script/m-p/3237100#M173030</guid>
      <dc:creator>mo jaber</dc:creator>
      <dc:date>2004-04-01T12:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: ping-t script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-t-script/m-p/3237101#M173031</link>
      <description>#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;IP=$1&lt;BR /&gt;SECS=$2&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;  ping -c 1 $IP&lt;BR /&gt;  sleep $SECS&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;---&lt;BR /&gt;&lt;BR /&gt;You can add controls, but it might work...</description>
      <pubDate>Thu, 01 Apr 2004 12:45:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ping-t-script/m-p/3237101#M173031</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-04-01T12:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: ping-t script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-t-script/m-p/3237102#M173032</link>
      <description>thanks for this answer.&lt;BR /&gt;but can you write it without using "do" or "while".&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Apr 2004 12:57:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ping-t-script/m-p/3237102#M173032</guid>
      <dc:creator>mo jaber</dc:creator>
      <dc:date>2004-04-01T12:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: ping-t script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-t-script/m-p/3237103#M173033</link>
      <description>I made a mistake :&lt;BR /&gt;it is ping $IP -n 1 (-c 1 must be on other system)&lt;BR /&gt;&lt;BR /&gt;If you want it without while and do, just do :&lt;BR /&gt;alias bloup=while&lt;BR /&gt;aliad foo=do&lt;BR /&gt;bloup true&lt;BR /&gt;foo&lt;BR /&gt;  ping $IP -n 1&lt;BR /&gt;  sleep $SECS&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;here it is :)&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Apr 2004 13:04:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ping-t-script/m-p/3237103#M173033</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-04-01T13:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: ping-t script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-t-script/m-p/3237104#M173034</link>
      <description>Mo -&lt;BR /&gt;As Fred suggests, you will wnat this to run in some window of time and most likely not into infinity.&lt;BR /&gt;Thus you will want a conditional statement of some sort to limit this window.&lt;BR /&gt;i.e.&lt;BR /&gt;limit=`date +%H`&lt;BR /&gt;while [ $limit -lt 17 ]&lt;BR /&gt;do&lt;BR /&gt;ping 10.0.0.45 -n 5 &amp;gt; /tmp/ping_file&lt;BR /&gt;limit=`date +%H`&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;fl</description>
      <pubDate>Thu, 01 Apr 2004 13:09:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ping-t-script/m-p/3237104#M173034</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2004-04-01T13:09:18Z</dc:date>
    </item>
  </channel>
</rss>

