{"id":5737,"date":"2015-11-11T13:17:56","date_gmt":"2015-11-11T12:17:56","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=5737"},"modified":"2015-11-11T13:17:56","modified_gmt":"2015-11-11T12:17:56","slug":"gnu-tail-follow-pid","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2015\/11\/11\/gnu-tail-follow-pid\/","title":{"rendered":"how to end GNU&#8217;s &#8220;tail &#8211;follow&#8221; together with the termination of the utility that creates the file being watched?"},"content":{"rendered":"<ul>\n<li><a href=\"https:\/\/www.gnu.org\/software\/coreutils\/manual\/html_node\/tail-invocation.html\">https:\/\/www.gnu.org\/software\/coreutils\/manual\/html_node\/tail-invocation.html<\/a><\/li>\n<\/ul>\n<p>GNU&#8217;s tail has a command line option for this: &#8220;<em>&#8211;pid=&#8230;<\/em>&#8220;. What a nice feature!!!<br \/>\nI was just about to do implement &#8220;it&#8221; the usual way, when I came across the manual page and got aware of this feature. Used it, worked as expected. This is great!<\/p>\n<p>I actually needed it first in a Windows context; so I had to convert a .bat script to a Cygwin-style bash script; then I implemented the file watching as described above. I like the UNIX and GNU toolchains.\t\t\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/www.gnu.org\/software\/coreutils\/manual\/html_node\/tail-invocation.html GNU&#8217;s tail has a command line option for this: &#8220;&#8211;pid=&#8230;&#8220;. What a nice feature!!! I was just about to do implement &#8220;it&#8221; the usual way, when I came across the manual page and got aware of this feature. Used it, worked as expected. This is great! I actually needed it first in a Windows [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_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":[82],"tags":[],"class_list":["post-5737","post","type-post","status-publish","format-standard","hentry","category-cygwin"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-1ux","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/5737","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=5737"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/5737\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=5737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=5737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=5737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}