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
<>
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 )
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
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
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
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