{"id":340,"date":"2015-04-15T00:10:38","date_gmt":"2015-04-14T15:10:38","guid":{"rendered":"http:\/\/blog.tajibook.com\/?p=340"},"modified":"2015-04-17T01:03:00","modified_gmt":"2015-04-16T16:03:00","slug":"continue-job-in-background-after-logout","status":"publish","type":"post","link":"https:\/\/blog.codebase.co.jp\/en\/continue-job-in-background-after-logout","title":{"rendered":"Continue Job in Background after Logout"},"content":{"rendered":"<p>In order to continue a job after logout, we can use &#8220;nohup&#8221; command which ignores HUP signal.<\/p>\n<pre class=\"lang:default decode:true\">$ nohup command<\/pre>\n<p>Adding &#8220;&amp;&#8221; gets the command to run in background.<\/p>\n<pre class=\"lang:default decode:true\">$ nohup command &amp;<\/pre>\n<p>Standard output and error of the command are output to nohup.out file created in the directory where the command is executed. If you want to\u00a0avoid the file creation, redirect standard error to standard output and standard output to \/dev\/null.<\/p>\n<pre class=\"lang:default decode:true \">$ nohup command &gt; \/dev\/null 2&gt;&amp;1 &amp;<\/pre>\n<p>Usually &#8220;nohup&#8221; is used in this style.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In order to continue a job after logout, we can use &#8220;nohup&#8221; command which ignores HUP signal. $ no (&hellip;) <a href=\"https:\/\/blog.codebase.co.jp\/en\/continue-job-in-background-after-logout\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_locale":"en_US","_original_post":"338","footnotes":""},"categories":[34],"tags":[],"class_list":["post-340","post","type-post","status-publish","format-standard","hentry","category-unix","en-US"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.codebase.co.jp\/wp-json\/wp\/v2\/posts\/340","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.codebase.co.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.codebase.co.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.codebase.co.jp\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.codebase.co.jp\/wp-json\/wp\/v2\/comments?post=340"}],"version-history":[{"count":3,"href":"https:\/\/blog.codebase.co.jp\/wp-json\/wp\/v2\/posts\/340\/revisions"}],"predecessor-version":[{"id":343,"href":"https:\/\/blog.codebase.co.jp\/wp-json\/wp\/v2\/posts\/340\/revisions\/343"}],"wp:attachment":[{"href":"https:\/\/blog.codebase.co.jp\/wp-json\/wp\/v2\/media?parent=340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.codebase.co.jp\/wp-json\/wp\/v2\/categories?post=340"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.codebase.co.jp\/wp-json\/wp\/v2\/tags?post=340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}