Pexpect: SSH, Command and Password

Gil_H gil.horen at gmail.com
Wed Apr 4 09:01:18 EDT 2007


On 4 Apr, 15:14, Ganesan Rajagopal <rgane... at myrealbox.com> wrote:
> >>>>> "Gil" == Gil H <gil.ho... at gmail.com> writes:
> > classSSH:
> >         def __init__(self, user, password, host):
> >                 self.child =pexpect.spawn("ssh%s@%s"%(user, host))
>
> Try adding the following line here
>
>     self.child.logfile = sys.stdout
>
> That should give you some clue.
>
> Ganesan
>
> --
> Ganesan Rajagopal

Thanks,

That's all i needed!




More information about the Python-list mailing list