reconnect to a running process?
Rob Weir
rweir at softhome.net
Tue Oct 15 14:44:39 EST 2002
On Tue, Oct 15, 2002 at 01:21:14PM +1000, Peter Lavender wrote:
> Hi Everyone,
>
> I had ssh'ed into my debian box (HPPA linux port running on HP 715 :)
> ) and during the apt-get dist-upgrade the ssh connection dropped out.
>
> The process had got to a prompt waiting for input. I ssh'ed ack to
> the box, but cannot figure out how to reconnect to the running/stalled
> apt-get process.
>
> I can see with with ps aux | grep apt. I'd rather not kill it if I
> don't need to, unless it's safe to do so...
I'm not sure what you can do now, but for this sort of thing I stick
with screen. SSH in, run `screen apt-get -dfuy dist-upgrade', and off
it goes. If you want to come back later, hit 'C-a d' to detach from the
process, then run `screen -r' to re-attach later. I'm not sure if it is
on by default, but screen can definitely handle drop outs like this
automatically.
-rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/linux/attachments/20021015/68fc448d/attachment.bin
More information about the linux
mailing list