On 6/8/2007 11:32 AM, John H. Robinson, IV wrote:
Karl Cunningham wrote:
I had a job running in an ssh console that I didn't want to restart, but
I had to log off the machine. So I ctrl-z'ed it, figuring I'd deal with
it later.
I'm logged back in again and I can see it's still running with ps. Is
there a way to regain control of the job by its pid, or some other way?
Not now - the console it was associated with is gone.
In the future, you can start it under screen (if you set your $SHELL to
screen, this makes it almost automatic)
You can still send signals (SGHUP, SIGTERM, SIGCONT, SIGQUIT) but you
are not going to get the STDIN, STDOUT, or STDERR of the command to
redrect to your terminal.
I would have used screen but didn't anticipate the need in advance. Thanks.
Karl
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list