<?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 + date in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ping-date/m-p/3895383#M25910</link>
    <description>Silju Ivan Ferreira&lt;BR /&gt;&lt;BR /&gt;Thanx a lot for ur quick Support , &lt;BR /&gt;&lt;BR /&gt;Ivan,  this is what i want !! . Thank u</description>
    <pubDate>Thu, 09 Nov 2006 22:32:07 GMT</pubDate>
    <dc:creator>Dushyant.Tyagi</dc:creator>
    <dc:date>2006-11-09T22:32:07Z</dc:date>
    <item>
      <title>ping + date</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ping-date/m-p/3895380#M25907</link>
      <description>Hi Gurus !!!&lt;BR /&gt;is it possibe in linux to take the continues  ping output in below format &lt;BR /&gt;&lt;BR /&gt;ping  + date&lt;BR /&gt;64 bytes from 192.168.x.x: icmp_seq=5 ttl=255 time=0.229 ms  Thu Nov  9 18:15:04 IST 2006&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Nov 2006 07:47:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ping-date/m-p/3895380#M25907</guid>
      <dc:creator>Dushyant.Tyagi</dc:creator>
      <dc:date>2006-11-09T07:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: ping + date</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ping-date/m-p/3895381#M25908</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;ping does not have option to show the date. You can use a script instead of it.&lt;BR /&gt;&lt;BR /&gt;while [ 1 ]; do ping -c 1 "hostname or IP"; date; sleep 1;done&lt;BR /&gt;&lt;BR /&gt;:)&lt;BR /&gt;&lt;BR /&gt;Warm Regards&lt;BR /&gt;Silju</description>
      <pubDate>Thu, 09 Nov 2006 07:59:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ping-date/m-p/3895381#M25908</guid>
      <dc:creator>Silju</dc:creator>
      <dc:date>2006-11-09T07:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: ping + date</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ping-date/m-p/3895382#M25909</link>
      <description>Use the following perl code, create a file called tstamp.pl:&lt;BR /&gt;&lt;BR /&gt;open(LOGFILE,"&amp;gt;&amp;amp;STDOUT") ;&lt;BR /&gt;&lt;BR /&gt;if ( $ARGV[0] ) {&lt;BR /&gt;&lt;BR /&gt;close(LOGFILE) ;&lt;BR /&gt;open(LOGFILE,"&amp;gt;&amp;gt; $ARGV[0]") or die "Cannot open file $ARGV[0]\n" ;&lt;BR /&gt;select(LOGFILE) ; # If commented out, nothing&lt;BR /&gt;$| = 1 ; # is printed to $ARGV[0] later on&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;while ( &lt;STDIN&gt; ) {&lt;BR /&gt;&lt;BR /&gt;( $sec, $min, $hour, $day, $month, $year ) = localtime() ;&lt;BR /&gt;$month += 1 ;&lt;BR /&gt;$year += 1900 ;&lt;BR /&gt;&lt;BR /&gt;printf LOGFILE ("%02d.%02d.%04d %02d:%02d:%02d: %s", $day, $month,&lt;BR /&gt;$year,&lt;BR /&gt;$hour, $min, $sec, $_) ;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;ping localhost | tstamp.pl&lt;BR /&gt;&lt;BR /&gt;09.11.2006 10:57:21: PING localhost (127.0.0.1): 56 data bytes&lt;BR /&gt;09.11.2006 10:57:21: 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=1 ms&lt;BR /&gt;09.11.2006 10:57:22: 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0 ms&lt;BR /&gt;&lt;BR /&gt;&lt;/STDIN&gt;</description>
      <pubDate>Thu, 09 Nov 2006 08:58:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ping-date/m-p/3895382#M25909</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-11-09T08:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: ping + date</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ping-date/m-p/3895383#M25910</link>
      <description>Silju Ivan Ferreira&lt;BR /&gt;&lt;BR /&gt;Thanx a lot for ur quick Support , &lt;BR /&gt;&lt;BR /&gt;Ivan,  this is what i want !! . Thank u</description>
      <pubDate>Thu, 09 Nov 2006 22:32:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ping-date/m-p/3895383#M25910</guid>
      <dc:creator>Dushyant.Tyagi</dc:creator>
      <dc:date>2006-11-09T22:32:07Z</dc:date>
    </item>
  </channel>
</rss>

