Detach running process?

Scott Henson scotth at csee.wvu.edu
Sun May 15 22:33:27 UTC 2005


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.  

> Screen is great for this kind of stuff.

Yes, screen is absolutely fantastic.  Any machine I work on must have
screen installed or I tear out my eyes.  

-- 
Scott Henson <scotth at csee.wvu.edu>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050515/a801fadc/attachment.pgp>


More information about the ubuntu-users mailing list