tcl/expect telnet spawns randomly close
Greetings all,
I'm just about at wits end. I have a series of expect scripts that telnet into windows and linux boxes. Most of the time these scripts will run fine, but every fourth or fifth run a telnet session will close with out warning. This behavior is unpredictable and inconsistent. It may happen in part of my script once and another part of script at another time. I'm getting a little desperate. I'm running wireshark & exp_internal to try and pinpoint the problem no luck. any hints/advice/thoughts/questions would be appreciated. feeling stumped. steve here is an output example: ('@'s are part of the welcome banner after logging in) expect: read eof expect: set expect_out(spawn_id) "exp9" expect: set expect_out(buffer) ".\r\n\r\n\r\n\r\n @@ @@ @@ @@@@@@ @@@ \r\n @@ @@ @@ @@ \r\n @@ @@ @@ @@ @@@@@@ @@ @@ \r\n @@ @@ @@@@@@ @@ @@@@@@@ @@ @@ @@ \r\n @@@@@@ @@ \r\n @@ @@ @@ @@@@@ @@@@@ @@@@@ @@@@@ @@ @@@@@ @@@@@ @@ @@ @@ @@ \r\n @@ @@@@@ @@ @@ @ @@ @@ \r\n @@ @@@@ @@@ @@ @@ @@ @@ @@@ @@ @@@ @@@@ @@ @@@@ @@@@ \r\n \nConnection closed by foreign host.\r\r\n" write() failed to write anything - will sleep(1) and retry... send: sending "\r" to { exp9 send: spawn id exp9 not open while executing "send "\r"" (procedure "gleanPrompt" line 10) invoked from within "gleanPrompt $spawn_id" (procedure "connectTelnet" line 56) invoked from within "connectTelnet $host" invoked from within "set telnetSpawnId [connectTelnet $host]" (file "loadSettings.exp" line 47) |
Would you be able to supply the script's code?
|
All times are GMT -5. The time now is 12:13 PM. |