[clug] Command of the Hour
Hal Ashburner
hal.ashburner at gmail.com
Tue Sep 23 13:50:40 GMT 2008
If you're running some very long running command and realise that you
are likely to log out before it finishes for whatever reason (you're
going home, the network connection is flaky etc) and you have that
"screen moment" where you say to yourself "I wish I started this from
inside a screen session"
One solution is cryopid:
http://cryopid.berlios.de/
Which allows you to freeze the process using cryopid then thaw it again
from inside screen.
Another slightly simpler, quick & dirty fix might be to use shell job
control:
Ctrl+z
bg %1
disown %1
Which then allows you to close the controlling terminal without killing
the process. With the caveat that if you needed the output from the
controlling terminal it's gone.
Cryopid can also be extremely useful to assist in tracking down a bug
that requires a very long setup to trigger. Eg you can run the process,
maybe on a simulator. Do the very long setup and then freeze the
process. Then you can thaw the process many times with that setup
already done as you prod and poke to find the bug.
More information about the linux
mailing list