interact issue

Help
2006-01-30
2013-05-02
  • Florian hines
    Florian hines
    2006-01-30

    So i've run into an interesting issue, im using expect to autolog me into another server via ssh and then su to root and then give access to the user via "interact".  If you do a "find ." (or anything that returns lots of output fast) in a big directory it begins to loop...like the page that was output to the shell just keeps being displayed instead of scrolling.  This happens in aterm and gnome-terminal.

    So at first i thought it was something to do with the session being over ssh ...but it occurr's even with this simple script:

    #!/usr/bin/expect -f

    set timeout 1
    spawn $env(SHELL)
    match_max 100000
    interact

    Anyone have any ideas ?

    --
    cat /etc/redhat-release && rpm -qa | grep expect
    Fedora Core release 3 (Heidelberg)
    expect-5.42.1-1
    expectk-5.42.1-1
    expect-devel-5.42.1-1