
{"id":15861,"date":"2014-06-16T18:36:36","date_gmt":"2014-06-16T18:36:36","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=15861"},"modified":"2014-06-16T18:36:36","modified_gmt":"2014-06-16T18:36:36","slug":"how-to-check-exit-status-of-a-command","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2014\/06\/16\/how-to-check-exit-status-of-a-command\/","title":{"rendered":"How to check exit status of a command ?"},"content":{"rendered":"<pre>\n$stat \nstat: missing operand\nTry 'stat --help' for more information.\n$echo $?\n1\n$stat popen1-p1.c \n  File: \u2018popen1-p1.c\u2019\n  Size: 473       \tBlocks: 8          IO Block: 4096   regular file\nDevice: 801h\/2049d\tInode: 5245647     Links: 1\nAccess: (0644\/-rw-r--r--)  Uid: ( 1000\/ jeffrin)   Gid: ( 1000\/ jeffrin)\nAccess: 2014-06-16 23:31:58.746088758 +0530\nModify: 2014-06-16 23:31:27.649735653 +0530\nChange: 2014-06-16 23:31:27.649735653 +0530\n Birth: -\n$echo $?\n0\n$uname \nLinux\n$echo $?\n0\n$uname -top\nuname: invalid option -- 't'\nTry 'uname --help' for more information.\n$echo $?\n1\n$\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>$stat stat: missing operand Try &#8216;stat &#8211;help&#8217; for more information. $echo $? 1 $stat popen1-p1.c File: \u2018popen1-p1.c\u2019 Size: 473 Blocks: 8 IO Block: 4096 regular file Device: 801h\/2049d Inode: 5245647 Links: 1 Access: (0644\/-rw-r&#8211;r&#8211;) Uid: ( 1000\/ jeffrin) Gid: ( 1000\/ jeffrin) Access: 2014-06-16 23:31:58.746088758 +0530 Modify: 2014-06-16 23:31:27.649735653 +0530 Change: 2014-06-16 23:31:27.649735653 +0530 Birth: &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2014\/06\/16\/how-to-check-exit-status-of-a-command\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to check exit status of a command ?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[83],"tags":[740,1489],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/15861"}],"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=15861"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/15861\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=15861"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=15861"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=15861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}