[svlug] nohup-ing a running process

Brian J. Tarricone bjt23 at cornell.edu
Thu Aug 4 20:09:31 PDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rufoo wrote:
> several times I miss out on running a command using
> nohup and I had to restart it in order to keep it
> running after I quit the shell. Is there a way to
> nohup a process after it is started? Thanks.

Use the 'disown' command (assuming bash is your shell).  It's a normal
job control function, so something like this:

$ ./foo &
# ....
$ ./bar &
# crap, i wanted foo nohup'ed!
$ disown %1

'disown' without any parameters will disown the last command backgrounded.

	-brian

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFC8thr6XyW6VEeAnsRApU8AKDTxUec09UqtTchAb8jLdsQI6x8VwCfeAhU
uD8/cmukAHGdEdJquD/bzOQ=
=/XTi
-----END PGP SIGNATURE-----




More information about the svlug mailing list