<?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: Set a ping program in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/set-a-ping-program/m-p/4040704#M302895</link>
    <description>hi,&lt;BR /&gt;&lt;BR /&gt;since by default, ping waits for 1 sec between the sending of each packet, this can be easily implemented.&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh  &lt;BR /&gt;export PINGLOG=/home/yd/logfiles/ping-$(date +%a)&lt;BR /&gt;cat /dev/null &amp;gt; $PINGLOG&lt;BR /&gt;i=1&lt;BR /&gt;while [ $i -le 8 ]&lt;BR /&gt;do&lt;BR /&gt; ping hostb -c 3600   &amp;gt;&amp;gt; $PINGLOG&lt;BR /&gt; date &amp;gt;&amp;gt; $PINGLOG&lt;BR /&gt; i=`expr $i + 1`&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
    <pubDate>Fri, 20 Jul 2007 02:14:41 GMT</pubDate>
    <dc:creator>Yogeeraj_1</dc:creator>
    <dc:date>2007-07-20T02:14:41Z</dc:date>
    <item>
      <title>Set a ping program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/set-a-ping-program/m-p/4040703#M302894</link>
      <description>I would like to add a ping program that ping from host A to host B , the ping schedule is from 09:00am to 05:00pm daily , and periodically send a current time to the ping log ( so that I can easily to trace the time ) , can provide a simple script for me ? &lt;BR /&gt;what I do now is :&lt;BR /&gt;schedule job 1 : submit a ping job at 09:00am daily and kill it at 05:00pm&lt;BR /&gt;schedule job 2 : set a schedule job to run hourly "date &amp;gt;&amp;gt; ping.log"&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Jul 2007 01:19:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/set-a-ping-program/m-p/4040703#M302894</guid>
      <dc:creator>hangyu</dc:creator>
      <dc:date>2007-07-20T01:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set a ping program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/set-a-ping-program/m-p/4040704#M302895</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;since by default, ping waits for 1 sec between the sending of each packet, this can be easily implemented.&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh  &lt;BR /&gt;export PINGLOG=/home/yd/logfiles/ping-$(date +%a)&lt;BR /&gt;cat /dev/null &amp;gt; $PINGLOG&lt;BR /&gt;i=1&lt;BR /&gt;while [ $i -le 8 ]&lt;BR /&gt;do&lt;BR /&gt; ping hostb -c 3600   &amp;gt;&amp;gt; $PINGLOG&lt;BR /&gt; date &amp;gt;&amp;gt; $PINGLOG&lt;BR /&gt; i=`expr $i + 1`&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Fri, 20 Jul 2007 02:14:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/set-a-ping-program/m-p/4040704#M302895</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2007-07-20T02:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set a ping program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/set-a-ping-program/m-p/4040705#M302896</link>
      <description>Hi hangyu&lt;BR /&gt;&lt;BR /&gt;This is "ping_host.csh" script&lt;BR /&gt;#!/bin/csh -f&lt;BR /&gt;/usr/sbin/ping -s HOSTNAME&lt;BR /&gt;&lt;BR /&gt;This is kill_ping.csh script:&lt;BR /&gt;#!/bin/csh -f&lt;BR /&gt;set PR_ID = `/bin/ps -ef | grep ping | grep -v grep | grep HOSTNAME | awk '{print $2}'`&lt;BR /&gt;kill -9 $PR_ID&lt;BR /&gt;&lt;BR /&gt;This is crontab line:&lt;BR /&gt;&lt;BR /&gt;00 9 * * 1-5 ping_host.csh &amp;gt; ping.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;00 17 * * 1-5 kill_ping.csh&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;Ernesto.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Jul 2007 10:20:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/set-a-ping-program/m-p/4040705#M302896</guid>
      <dc:creator>Ernesto Cappello</dc:creator>
      <dc:date>2007-07-20T10:20:03Z</dc:date>
    </item>
  </channel>
</rss>

