bad gnome-terminal or bad script?

From: Marc Williams (marcw_at_onlymooo.com)
Date: 02/06/05

  • Next message: Linas Purinis: "Re: Burning ISO Files..How.?"
    Date: Sun, 06 Feb 2005 09:35:30 -0600
    To: fedora-list@redhat.com
    
    

    I've just started exploring the Expect language and have quickly hit a
    little bit of a speed bump. But I'm not sure it's Expect that's the
    problem.

    In an FC3 gnome-terminal, I try to run the following script:
    ----------------------
    #!/usr/bin/expect --
    spawn ssh 192.168.0.9
    expect "word: "
    send "password\r"
    expect "]$ "
    interact
    ----------------------

    I don't think it's possible to get any simpler than that. It completes
    successfully and everything seems to be just fine. Until I attempt to
    run a command in the newly spawned ssh session that generates a fair
    amount of output such as "ls -la /usr/bin" or cat'ing a larger text
    file. The output of such a command starts off like normal but before it
    finishes, the output gets "stuck", for lack of a better word. A few
    screenfuls of output go by and then it simply stops in it's tracks. The
    output jiggles around a bit in the term window but the output doesn't
    finish. The cursor seems stuck in place. I can't Ctrl-c out of it
    either but rather I have to manually kill it.

    Does this seem like a gnome-terminal problem or a script problem? Thanks!

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Linas Purinis: "Re: Burning ISO Files..How.?"

    Relevant Pages

    • Re: Expect problems with Linux terminal
      ... > little bit of a speed bump. ... > run a command in the newly spawned ssh session that generates a fair ... The output of such a command starts off like normal but before it ... > Does this seem like a gnome-terminal problem or a script problem or ...
      (comp.lang.tcl)
    • Expect problems with Linux terminal
      ... run a command in the newly spawned ssh session that generates a fair ... The output of such a command starts off like normal but before it ... The cursor seems stuck in place. ... If I run the script from a console, everything works fine with none of the ...
      (comp.lang.tcl)
    • Re: CM11A lockup
      ... a quick power cycle on the CM11A was always the fix. ... Just checking for a repeated command (stuck ... rogue transmitter was issuing about a command each second, ...
      (comp.home.automation)
    • Re: Why Cant Public Wi-Fi Be Made Secure?
      ... Sometimes, conferences host as to solar landscapes, unless they're ... stuck. ... If you'll command Rifaat's circle with turns, ...
      (sci.crypt)
    • Re: Fedora 8 install gets stuck
      ... There was one time when I tried running the installer and it did not get stuck, but I aborted the installation as anaconda got started to experiment with the kernel command line parameters. ... The same Fedora 8 media installed without any problem on a desktop computer. ...
      (Fedora)