{"id":3740,"date":"2014-06-05T15:26:27","date_gmt":"2014-06-05T13:26:27","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=3740"},"modified":"2014-06-05T15:26:27","modified_gmt":"2014-06-05T13:26:27","slug":"linux-watch-in-perl","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2014\/06\/05\/linux-watch-in-perl\/","title":{"rendered":"Linux &#8220;watch&#8221; in Perl executable on AIX and Solaris and Mac OS X"},"content":{"rendered":"<ul>\n<li><a href=\"http:\/\/en.wikipedia.org\/wiki\/Watch_(Unix)\">en.wikipedia.org\/wiki\/Watch_(Unix)<\/a><\/li>\n<li><a href=\"http:\/\/backpan.perl.org\/authors\/id\/G\/GR\/GRAHJENK\/watch-1.03.pl\">backpan.perl.org\/authors\/id\/G\/GR\/GRAHJENK\/watch-1.03.pl<\/a><\/li>\n<\/ul>\n<p>The story:<\/p>\n<ul>\n<li>I got fed up with a local &#8220;<em>loop<\/em>&#8221; script,<\/li>\n<li>thinking there must be a standard utility for this,<\/li>\n<li>came across the <em>watch<\/em> utility while reading &#8220;<em>Linux Server Hacks (xof2)<\/em>&#8220;,<\/li>\n<li>and searched for &#8220;<em>linux watch in perl<\/em>&#8220;, 1st on DuckDuckGo (failing!), then on Google,<\/li>\n<li>got hold of watch.pl;<\/li>\n<li>it works on the current customer&#8217;s AIX \u2013 that&#8217;s what I wanted to see;<\/li>\n<li>and also on my MacBook running Mavericks<\/li>\n<\/ul>\n<p>current disadvantage:<\/p>\n<ul>\n<li>only command line option it has: &#8220;<em>-n secs<\/em>&#8220;<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>en.wikipedia.org\/wiki\/Watch_(Unix) backpan.perl.org\/authors\/id\/G\/GR\/GRAHJENK\/watch-1.03.pl The story: I got fed up with a local &#8220;loop&#8221; script, thinking there must be a standard utility for this, came across the watch utility while reading &#8220;Linux Server Hacks (xof2)&#8220;, and searched for &#8220;linux watch in perl&#8220;, 1st on DuckDuckGo (failing!), then on Google, got hold of watch.pl; it works on the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false,"_share_on_mastodon":"0"},"categories":[666],"tags":[],"class_list":["post-3740","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-Yk","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/3740","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=3740"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/3740\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=3740"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=3740"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=3740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}