[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-----
> 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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the svlug