Forgot to nohup(1)? Just use disown(1)
The use of nohup
to run a process in an open (possibly remote) shell to avoid killing it at logout is pretty wildly famous. A less known builtin command is disown
, which achieves the same result after you started the command, allowing you to "deamonize" processes on demand:
$ sh my_very_very_long_script.sh
^Z
[1] + 7503 suspended sh my_very_very_long_script.sh
$ bg
$ disown %1
Written by Carlo Sciolla
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#