in reply to Trying to close Expect.pm telnet timeout situation to avoid overwhelming a small target device

I think you should try changing the $timeout to -1 or a bigger number than 1 ... If your timeout is 1 second you probably are not even seeing the prompt. Specially if the device is busy with some other tasks
  • Comment on Re: Trying to close Expect.pm telnet timeout situation to avoid overwhelming a small target device

Replies are listed 'Best First'.
Re^2: Trying to close Expect.pm telnet timeout situation to avoid overwhelming a small target device
by elmoz (Initiate) on Nov 25, 2008 at 03:28 UTC
    Actually, I am trying to force the timeout. I am debugging the timeout case.

    My problem is that sometimes it does time out. When that occurs, my device is hung. I need to have the telnet session close more gracefully.