Problem with PEXPECT in Python

A.T.Hofkamp hat at se-162.se.wtb.tue.nl
Thu Jun 5 03:23:11 EDT 2008


On 2008-06-04, Mallikarjun Melagiri <mallikarjun.melagiri at hcl.in> wrote:
> Hi Noah,
>
>           I am new to python. I'm trying to use pexpect.
>
>          Following is my problem definition:
>
>                      I should have a script on my machine A, which
> should 'ssh' to machine B and from there it shud copy a file to machine
> C thru 'scp'.
>
>         Please help me.

We don't do your work, unless you pay us.


Instead, start solving the problem.
Think about it, start experimenting/programming, for example first a ssh
connection to B (or even a ssh connection to A would already do as first
step).

When you get stuck, post
 - the code
 - if Python produces an error, the PRECISE and COMPLETE error message,
 - a description of why you think it is a problem
 - a description of what you expect/want.

On such specific problems you will receive good and useful answers.


Sincerely,
Albert



More information about the Python-list mailing list