Re: ssh keepalive

2008-10-02 Thread Gabriel Genellina
En Thu, 02 Oct 2008 05:26:25 -0300, loial <[EMAIL PROTECTED]> escribió: <> Still not enough. From your first post, the error was: 'NoneType' object has no attribute 'exec_command' def command ( self , command ) : """ process requested command through ssh """ print co

Re: ssh keepalive

2008-10-02 Thread loial
<> def command ( self , command ) : """ process requested command through ssh """ print command if not self._connected : return False , "No SSH connection available" try : stdin , stdout , stderr = self._ssh.exec_command( command )

Re: ssh keepalive

2008-10-01 Thread Lie Ryan
On Wed, 01 Oct 2008 10:47:28 +, Marc 'BlackJack' Rintsch wrote: > On Wed, 01 Oct 2008 08:07:43 +, Lie Ryan wrote: > > a = [1, 3, 4, 2] > a = a.sort() > print a >> [None, None, None, None] > > *That* would be really odd. The last line should be just a singel > `None` and not

Re: ssh keepalive

2008-10-01 Thread Marc 'BlackJack' Rintsch
On Wed, 01 Oct 2008 08:07:43 +, Lie Ryan wrote: a = [1, 3, 4, 2] a = a.sort() print a > [None, None, None, None] *That* would be really odd. The last line should be just a singel `None` and not a list. :-) Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mai

Re: ssh keepalive

2008-10-01 Thread Lie Ryan
On Wed, 01 Oct 2008 00:30:59 -0700, loial wrote: > I have a problem with a ssh connection in python > > I get the error > > 'NoneType' object has no attribute 'exec_command' > > I am thinking that maybe the ssh connection is timeing out. > > Since I have no control over the configuration of th

ssh keepalive

2008-10-01 Thread loial
I have a problem with a ssh connection in python I get the error 'NoneType' object has no attribute 'exec_command' I am thinking that maybe the ssh connection is timeing out. Since I have no control over the configuration of the ssh server(which is AIX 5.23), is there anything I can do in pytho