Detach running process?

Erik Bågfors zindar at gmail.com
Mon May 16 07:00:24 UTC 2005


On 5/16/05, Scott Henson <scotth at csee.wvu.edu> wrote:
> On Sun, 2005-05-15 at 17:16 +0200, Erik Bågfors wrote:
> > Depends on how you define "detach".
> >
> > Perhaps ctrl-z followed by "bg" is what you are looking for.  Just
> > remember that that process is still attached to your tty. So if you
> > kill it, you kill the process.
> 
> Not entirely true.  After you bg(or background) a process, you can
> disown it, by typing disown right after you type bg.  Or disown will
> take a shell pid(its always %n where n is the number of processes
> running under the shell).  I think it will also take system pids, but
> I'm not sure.  man disown for more info on it.

True... didn't think of that :)

/Erik




More information about the ubuntu-users mailing list