
{"id":14087,"date":"2013-08-11T12:50:41","date_gmt":"2013-08-11T12:50:41","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?page_id=14087"},"modified":"2013-08-11T12:50:41","modified_gmt":"2013-08-11T12:50:41","slug":"flock-manage-locks-from-shell-scripts","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2013\/08\/11\/flock-manage-locks-from-shell-scripts\/","title":{"rendered":"flock &#8211; manage locks from shell scripts"},"content":{"rendered":"<h2><u>commandline session<\/u><\/h2>\n<pre>\n$&gt; 1\n$flock 1\n$ls\n1\n$echo 1 &gt; 1\n$cat 1\n1\n$ls -l\ntotal 4\n-rw-r--r-- 1 jeffrin jeffrin 2 Aug 11 18:24 1\n$flock -n 1\n$echo 1 &gt; 1\n$ls -l\ntotal 4\n-rw-r--r-- 1 jeffrin jeffrin 2 Aug 11 18:29 1\n$1 \/var\/loc\nlocal\/ lock\/\n$1&gt; \/var\/lock\/mylock\n$cat 1\n1\n$rm 1\n$ls\n$ls -l \/var\/lock\/mylock\n-rw-r--r-- 1 jeffrin jeffrin 0 Aug 11 18:30 \/var\/lock\/mylock\n$rm \/var\/lock\/mylock\n$ls\n$1&gt; \/var\/lock\/mylock\n$cat \/var\/lock\/mylock\n$cat \/var\/lock\/mylock\n$flock \/var\/lock\/mylock ls\n$ls\n$cat \/var\/lock\/mylock\n$\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>commandline session $&gt; 1 $flock 1 $ls 1 $echo 1 &gt; 1 $cat 1 1 $ls -l total 4 -rw-r&#8211;r&#8211; 1 jeffrin jeffrin 2 Aug 11 18:24 1 $flock -n 1 $echo 1 &gt; 1 $ls -l total 4 -rw-r&#8211;r&#8211; 1 jeffrin jeffrin 2 Aug 11 18:29 1 $1 \/var\/loc local\/ lock\/ $1&gt; \/var\/lock\/mylock $cat &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2013\/08\/11\/flock-manage-locks-from-shell-scripts\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;flock &#8211; manage locks from shell scripts&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"page-templates\/full-width.php","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/14087"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=14087"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/14087\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=14087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=14087"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=14087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}