; c.before, c.after
>>
>> ('exit\r\nexit\r\n', )>>> exit()
>>
>> mada...@njwarhqd0it696a:~
>> $
>> ---
>>
>> hope that helps.
>>
>> regards.
>>
;>
> c.sendline('exit')
> 5
> >>> c.expect([pexpect.TIMEOUT, pexpect.EOF, '\$ '])
> 1
> >>> c.before, c.after
>
> ('exit\r\nexit\r\n', )>>> exit()
>
> [EMAIL PROTECTED]:~
> $
>
What about pexpect?
http://www.noah.org/wiki/Pexpect
-Original Message-
From: Alan Franzoni [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2008 5:41 AM
To: python-list@python.org
Subject: Re: SSH utility
James Brady was kind enough to say:
> Hi all,
> I'm looking f
I use pexpect.
On Mon, Aug 11, 2008 at 7:22 AM, Jean-Paul Calderone <[EMAIL PROTECTED]>wrote:
> On Sun, 10 Aug 2008 21:25:38 -0700 (PDT), James Brady <
> [EMAIL PROTECTED]> wrote:
>
>> Hi all,
>> I'm looking for a python library that lets me execute shell commands
>> on remote machines.
>>
>> I'v
On Sun, 10 Aug 2008 21:25:38 -0700 (PDT), James Brady <[EMAIL PROTECTED]> wrote:
Hi all,
I'm looking for a python library that lets me execute shell commands
on remote machines.
I've tried a few SSH utilities so far: paramiko, PySSH and pssh;
unfortunately all been unreliable, and repeated quest
n', )
>>> exit()
[EMAIL PROTECTED]:~
$
-------
hope that helps.
regards.
Edwin
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
On Behalf Of James Brady
Sent: Monday, August 11, 2008 12:26 AM
To
James Brady wrote:
Hi all,
I'm looking for a python library that lets me execute shell commands
on remote machines.
I've tried a few SSH utilities so far: paramiko, PySSH and pssh;
unfortunately all been unreliable, and repeated questions on their
respective mailing lists haven't been answered..
James Brady was kind enough to say:
> Hi all,
> I'm looking for a python library that lets me execute shell commands
> on remote machines.
>
> I've tried a few SSH utilities so far: paramiko, PySSH and pssh;
> unfortunately all been unreliable, and repeated questions on their
> respective mailing
Hi all,
I'm looking for a python library that lets me execute shell commands
on remote machines.
I've tried a few SSH utilities so far: paramiko, PySSH and pssh;
unfortunately all been unreliable, and repeated questions on their
respective mailing lists haven't been answered...
It seems like the