//View Tip #744
Similar Tips
» Find files greater than a certain size
» Find and replace with backup
» Fix the previous command
» User input timeout
» Manipulate Bash sockets using /dev/tcp

 

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 »




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:
set NOHUP
Posted 2009-04-28 17:04:04

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit