Re: Pexpect: SSH, Command and Password

2007-04-04 Thread Gil_H
On 4 Apr, 15:14, Ganesan Rajagopal <[EMAIL PROTECTED]> wrote: > > "Gil" == Gil H <[EMAIL PROTECTED]> writes: > > classSSH: > > def __init__(self, user, password, host): > > self.child =pexpect.spawn("[EMAIL PROTECTED]"%(user, host)) > > Try adding the following line here

Pexpect: SSH, Command and Password

2007-04-04 Thread Gil_H
Hi, I'm trying to run a script over unix on a remote machine. In order to automate it, the procedure requests the following: 1. Using SSH connection. 2. Operating a command on the remote machine. 3. Expecting password or (yes/no) request and authorize it. I get an error (I thing that it occures a