expect + telnet hangs on AIX
- From: kkivi@xxxxxxxxxx (Konstantin Kivi)
- Date: 8 Apr 2005 05:57:12 -0700
Hello does anybody use expect + telnet on AIX
A cannot make it to work as it hangs soone or later.
I even tried to spawn sh instead of telnet and then
'send' telnet commans but has no luck.
[grs1]/grs1/home/tst > cat tt
spawn telnet localhost
expect -timeout 10 "assword: " { exit }
[grs1]/grs1/home/tst > expect -d tt
expect version 5.43.0
argv[0] = expect argv[1] = -d argv[2] = tt
set argc 0
set argv0 "tt"
et argv ""
executing commands from command file tt
spawn telnet localhost
parent: waiting for sync byte
parent: telling child to go ahead
parent: now unsynchronized from child
spawn: returns {409760}
expect: does "" (spawn_id exp4) match glob pattern "assword: "? no
Trying...
expect: does "Trying...\r\n" (spawn_id exp4) match glob pattern
"assword: "? no
telnet: connect:expect: does "Trying...\r\ntelnet: connect: "
(spawn_id exp4) match glob pattern "assword: "? no
Connection refused
expect: does "Trying...\r\ntelnet: connect: Connection refused\r\n"
(spawn_id exp4) match glob pattern "assword: "? no
expect: read eof
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "Trying...\r\ntelnet: connect:
Connection refused\r\n"
if I modify the script to connect to other system and then call
intertact
than after I type exit expect hangs too
Regards, Konstantin
.
- Follow-Ups:
- Re: expect + telnet hangs on AIX
- From: Khaled
- Re: expect + telnet hangs on AIX
- Prev by Date: Re: Oratcl4.3 and more than one bind variable...
- Next by Date: Re: Oratcl4.3 and more than one bind variable...
- Previous by thread: Re: tkdnd within a text widget with blinking cursor
- Next by thread: Re: expect + telnet hangs on AIX
- Index(es):
Relevant Pages
|
|