
{"id":5394,"date":"2011-08-09T15:52:20","date_gmt":"2011-08-09T15:52:20","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=5394"},"modified":"2011-08-09T15:52:20","modified_gmt":"2011-08-09T15:52:20","slug":"nohup-run-a-command-immune-to-hangups-with-output-to-a-non-tty","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2011\/08\/09\/nohup-run-a-command-immune-to-hangups-with-output-to-a-non-tty\/","title":{"rendered":"nohup &#8211; run a command immune to hangups, with output to a non-tty"},"content":{"rendered":"<h5><u> A UNIX Command <\/u><\/h5>\n<pre>\n$nohup ls &lt; \/dev\/null\nnohup: appending output to `nohup.out&#039;\n$cat nohup.out\nDesktop\nDownloads\nJohnySagariga\nLeanBiz.zip\nnohup.out\n$ls\nDesktop  Downloads  JohnySagariga  LeanBiz.zip  nohup.out\n$\n\n$nohup top &lt; \/dev\/null\nnohup: appending output to `nohup.out&#039;\n$cat nohup.out\nDesktop\nDownloads\nJohnySagariga\nLeanBiz.zip\nnohup.out\n\ttop: failed tty get\n\n$nohup top &lt; \/dev\/\nnohup: appending output to `nohup.out&#039;\n$who\njeffrin  tty7         2011-08-09 19:48 (:0)\njeffrin  pts\/0        2011-08-09 21:18 (:0.0)\njeffrin  pts\/1        2011-08-09 21:20 (:0.0)\n$nohup top &lt; \/dev\/pts\/1\nnohup: ignoring input and appending output to `nohup.out&#039;\n$cat nohup.out\nDesktop\nDownloads\nJohnySagariga\nLeanBiz.zip\nnohup.out\n\ttop: failed tty get\n\n\ttop: failed tty get\n\n\ttop: failed tty get\n\n$\n\n<\/pre>\n<p><\/p>\n<h5><u> UNIX Explanation <\/u><\/h5>\n<pre>\nUsage: nohup COMMAND [ARG]...\n  or:  nohup OPTION\nRun COMMAND, ignoring hangup signals.\n\n      --help     display this help and exit\n      --version  output version information and exit\n\nIf standard input is a terminal, redirect it from \/dev\/null.\nIf standard output is a terminal, append output to `nohup.out' if possible,\n`$HOME\/nohup.out' otherwise.\nIf standard error is a terminal, redirect it to standard output.\nTo save output to FILE, use `nohup COMMAND &gt; FILE'.\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>A UNIX Command $nohup ls &lt; \/dev\/null nohup: appending output to `nohup.out&#039; $cat nohup.out Desktop Downloads JohnySagariga LeanBiz.zip nohup.out $ls Desktop Downloads JohnySagariga LeanBiz.zip nohup.out $ $nohup top &lt; \/dev\/null nohup: appending output to `nohup.out&#039; $cat nohup.out Desktop Downloads JohnySagariga LeanBiz.zip nohup.out top: failed tty get $nohup top &lt; \/dev\/ nohup: appending output to `nohup.out&#039; &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2011\/08\/09\/nohup-run-a-command-immune-to-hangups-with-output-to-a-non-tty\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;nohup &#8211; run a command immune to hangups, with output to a non-tty&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[83],"tags":[1175],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/5394"}],"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=5394"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/5394\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=5394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=5394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=5394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}