Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Expect on AIX hangs

Help
Chris T
2007-01-18
2013-05-02
  • Chris T
    Chris T
    2007-01-18

    I have just compiled expect 5.44.1 against tcl8.4.14 on AIX 5.2.  When I run a script that automatically exist expect hangs.
    So for example the following script will hang when exit is executed.

    #!/opt/local/tcl-8.4.14/bin/expect -f

    # spawn sftp -b [lindex $argv 0] jacftp01@202.168.36.134
    spawn sftp jacftp01@202.168.36.134
    match_max 100000
    expect "jacftp01@202.168.36.134's password: "
    send -- "jac.Password\r"

    # interact timeout 60
    exit

    While the following script will not hang

    #!/opt/local/tcl-8.4.14/bin/expect -f

    # spawn sftp -b [lindex $argv 0] jacftp01@202.168.36.134
    spawn sftp jacftp01@202.168.36.134
    match_max 100000
    expect "jacftp01@202.168.36.134's password: "
    send -- "jac.Password\r"

    # interact timeout 60
    exit

    Also when the script hangs expect does not show up in a ps -ef listing which indicates that it is not returning control to the terminal properly.

    Any help would be appreciated.

     
    • Chris T
      Chris T
      2007-01-18

      I down graded to expect 5.43 and still the same problem