//View Tip #744
Similar Tips
» Change file extension revisited
» Overwrite a file with zeroes
» My code is compiling
» list the most recent files in a directory
» Bash efficiency formula ;-)


Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
I often use 'screen' to run a command that I want to leave running when I logout but sometimes I forget and kick off a long job without screen. If you want to keep these things running, the following command will close the shell keeping all subprocess running

disown -a && exit

More information on the bash man page:

man bash | grep -A9 "disown \["

View Comments »


Add your comment

Comments are currently disabled
very informative, thanks
Posted 2009-04-28 12:50:12
This one is shell-agnostic, and I use it a lot:
Posted 2009-04-28 17:04:04

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit