Problem with PEXPECT in Python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mallikarjun Melagiri

    Problem with PEXPECT in Python

    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.

    Regards
    Mallik






  • A.T.Hofkamp

    #2
    Re: Problem with PEXPECT in Python

    On 2008-06-04, Mallikarjun Melagiri <mallikarjun.me lagiri@hcl.inwr ote:
    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

    Comment

    Working...