Expect Scripting

From: Albert Duane Lawson (vyh.qsep@synera.com)
Date: Thu Jun 07 2001 - 22:50:00 EEST

  • Next message: Gwyneth C . Morrison: "Re: Expect Scripting"

    Thanks for reading....

    I am setting up an ftp script using expect. I've ran into a problem sending
    the password.

    Here's the part of the script that expect is having trouble with.....

    spawn ftp -nv XX.XX.XX.XX
    expect ftp>
    send "user wb7awl\r"
    expect Password:
    send "$xxxxxx$\r"
    expect ftp>

    The actual password begins and ends with $ and expect is trying to read that
    as a variable. Is there a way to make expect not read that as varibale and
    send the actual string....???

    Any help would be appreciated.....

    73's

    Albert/WB7AWL

    -
    To unsubscribe from this list: send the line "unsubscribe linux-hams" in
    the body of a message to osckg@smurfit.com



    This archive was generated by hypermail 2b30 : Thu Jun 07 2001 - 22:53:03 EEST