[Gllug] Disconnected ssh sessions and pseudo-terminals
Ziya Suzen
ziya at suzen.net
Tue Oct 28 10:59:25 UTC 2008
Hi there
Sometimes I hate my ADSL provider. Connections keep dropping
and I loose my SSH connections. What I usually do is to ignore
them and open new SSH sessions. However it gets annoying
when you have an editor already opened on a file, you 'ps' it
and see it opened there, but you can't exit the editor (vi) or take
control of the now not-used pts.
I have tried a few tricks without any luck:
Exit the Editor:
# echo -n ^[ >> /dev/pts/1
# echo -n :x >> /dev/pts/1
(Note:key combination typed for escape: ctrl+v, Esc)
And hopelessly tried 'screen' to get to the orphan terminal :(
Any ideas?
Cheers
--Ziya
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list