Re: expect + telnet hangs on AIX



"Khaled" <ksubs@xxxxxxx> wrote in message news:<1113082055.444340.97160@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>...
> kkivi@xxxxxxxxxx wrote:
> >
> > The question is not about connection refused.
> > The question is why expect hangs. As I write if I telnet to another
> > system it hangs either. I have an application that can be conntrolled
> > via telnet (it listen on it's own port). if I try to use expect in
> this
> > \
> > case it hangs too.
>
> What do u mean by "hangs"? What makes u say so? This does not show in
> yr quoted debug.

This means that the program(or script) never returns.

After spawn telnet is finished (either because connection was refused or
because connection is closed) and there is no more experssions in the script, expect
doesn't exit and cannot be terminated
from the keybord (SIGINTR/SIGQUIT). I have to make another session and
kill it.


I have some basic experience with expect and never seen such behaviour.


Konstantin
.



Relevant Pages

  • UPDATE: Keeping Telnet Session Open
    ... even tell script what commands to run in a non-interactive, ... see the telnet running in the psoutput. ... the other end is accepting the connection. ...
    (SunManagers)
  • Re: expect + telnet hangs on AIX
    ... Is it only telnet to a particular host that misbehaves? ... >> This script hangs 80% of the time ... >> When running expect -d it never hangs ... 'close stdout ' ...
    (comp.lang.tcl)
  • SOLUTION: Keeping Telnet Session Open
    ... After more tinkering with my expect script, ... > Thanks to several people for responding. ... > see the telnet running in the psoutput. ... > the other end is accepting the connection. ...
    (SunManagers)
  • Re: Emulating a modem with expect
    ... > (basically allows GUI connections via telnet if X is not allowed). ... > script works fine on Linux machines since it makes a call to pppd on both ... > Basically pppd on Linux creates a ppp0 interace automatically, ... > Once chat finishes the phyiscal connection of dialing, ...
    (comp.lang.tcl)
  • Re: expect + telnet hangs on AIX
    ... >>> The question is not about connection refused. ... >>> The question is why expect hangs. ... >>> via telnet. ... >This means that the program(or script) never returns. ...
    (comp.lang.tcl)