{"id":63,"date":"2013-12-04T21:00:00","date_gmt":"2013-12-04T21:00:00","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/Hayek\/Jochen\/wp\/blog-en\/2013\/12\/04\/aix-moans-cannot-open-or-remove-a-file-containing-a-running-program\/"},"modified":"2013-12-04T21:00:00","modified_gmt":"2013-12-04T21:00:00","slug":"aix-moans-cannot-open-or-remove-a-file-containing-a-running-program","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2013\/12\/04\/aix-moans-cannot-open-or-remove-a-file-containing-a-running-program\/","title":{"rendered":"AIX moans: &#8220;Cannot open or remove a file containing a running program&#8221;"},"content":{"rendered":"<p><\/p>\n<ul>\n<li><a href=\"http:\/\/www.linuxmisc.com\/11-unix-aix\/994cba5a5792b68b.htm\">http:\/\/www.linuxmisc.com\/11-unix-aix\/994cba5a5792b68b.htm<\/a><\/li>\n<\/ul>\n<div>\nI came across this phenomenon in various contexts on AIX.\u00a0<\/div>\n<div>\nIt really sounds like &#8220;<i>text file busy<\/i>&#8221; from the old Unix days.<\/p>\n<p>Looks like the guys who misuse this error message for there miserable situations actually mean\u00a0&#8220;<i>cannot open or remove a file<\/i>&#8220;. I call this capturing.<\/div>\n<div>\n<br \/>\nLooks like some variants of the &#8220;copy&#8221; utility (like CPAN <a href=\"https:\/\/metacpan.org\/pod\/File::Copy\">File::Copy<\/a>) use this error message instead of &#8220;<i>no such file or directory<\/i>&#8220;. Maybe this happens in concurrent environments \/ situations, where a file disappears between the call to\u00a0<a href=\"https:\/\/metacpan.org\/pod\/File::Copy\">File::Copy<\/a>\u00a0and the actual kernel &#8220;<i>open<\/i>&#8220;. Once &#8220;<i>open<\/i>&#8221; <b>has<\/b> a file handle, the inode access counter gets incremented, and the file cannot really disappear any longer, as long as it remains open ie. did not get closed again.<\/p>\n<p>To be continue \u2026<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/www.linuxmisc.com\/11-unix-aix\/994cba5a5792b68b.htm I came across this phenomenon in various contexts on AIX.\u00a0 It really sounds like &#8220;text file busy&#8221; from the old Unix days. Looks like the guys who misuse this error message for there miserable situations actually mean\u00a0&#8220;cannot open or remove a file&#8220;. I call this capturing. Looks like some variants of the &#8220;copy&#8221; utility [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","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":false,"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-63","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-11","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/63","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=63"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/63\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}