{"id":226,"date":"2015-11-04T15:02:40","date_gmt":"2015-11-04T15:02:40","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=226"},"modified":"2015-11-04T16:10:20","modified_gmt":"2015-11-04T16:10:20","slug":"checking-a-ping-reply-with-a-time-index","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2015\/11\/04\/checking-a-ping-reply-with-a-time-index\/","title":{"rendered":"Checking a Ping reply with a time index for Linux and Windows Boxes"},"content":{"rendered":"<p>Linux<\/p>\n<pre>\r\n\r\n ping www.google.com | while read pong; do echo \"$(date): $pong\"; done  \r\n\r\n<\/pre>\n<p>Windows<\/p>\n<pre>\r\n@echo off\r\n:loop\r\nping -n 1 %1 >nul || echo %date% %time% no reply from %1 >> pinglog.txt\r\nchoice \/N \/T 1 \/D Y >nul\r\ngoto loop\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Linux ping www.google.com | while read pong; do echo &#8220;$(date): $pong&#8221;; done Windows @echo off :loop ping -n 1 %1 >nul || echo %date% %time% no reply from %1 >> pinglog.txt choice \/N \/T 1 \/D Y >nul goto loop<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-226","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=226"}],"version-history":[{"count":2,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/226\/revisions"}],"predecessor-version":[{"id":228,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/226\/revisions\/228"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}