[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sshproxy-dev] Changes to sshproxy/SSHproxy/client/ssh.py
From: |
Pierre-Yves Rofes |
Subject: |
[sshproxy-dev] Changes to sshproxy/SSHproxy/client/ssh.py |
Date: |
Thu, 27 Oct 2005 10:14:36 -0400 |
Index: sshproxy/SSHproxy/client/ssh.py
diff -u sshproxy/SSHproxy/client/ssh.py:1.7 sshproxy/SSHproxy/client/ssh.py:1.8
--- sshproxy/SSHproxy/client/ssh.py:1.7 Mon Sep 26 13:35:37 2005
+++ sshproxy/SSHproxy/client/ssh.py Thu Oct 27 14:14:36 2005
@@ -84,6 +84,7 @@
self.transport.connect(username=username,
password=password,
hostkey=self.hostkey)
+
except paramiko.ssh_exception.SSHException, e:
print e
# let's force close chans
@@ -174,6 +175,7 @@
self.reset_term()
self.fdout.write("\n")
self.cmd.cmdloop()
+ print 'end console'
fcntl.fcntl(self.fdin, fcntl.F_SETFL, os.O_NDELAY)
self.set_term()
# send ^L to clear screen and restore cmd line
@@ -182,6 +184,8 @@
continue
self.session.send(x)
+ if not (self.transport.is_active() and self.session.active):
+ print 'end session...'
finally:
self.reset_term()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [sshproxy-dev] Changes to sshproxy/SSHproxy/client/ssh.py,
Pierre-Yves Rofes <=