in reply to Telnet Time Out while using select(undef, undef, undef, 5)

I think you are going to need to provide more details. Are you using a module for telnet? If so, which one? I don't understand what you expect to accomplish with select(undef, undef, undef, 5). I have not used it like this personally, but according to perldoc, this is really equivalent to sleep (5). Is that really what you want?
  • Comment on Re: Telnet Time Out while using select(undef, undef, undef, 5)

Replies are listed 'Best First'.
Re^2: Telnet Time Out while using select(undef, undef, undef, 5)
by awm_123 (Initiate) on Aug 27, 2008 at 06:39 UTC
    Sorry if that post is confusing. Yes I am using a module to telnet, the one that comes with perl but modified it accordingly for bussiness needs. While doing the telnet, i am reading the file descriptors returned by "select" with 5 seconds sleep. It is expecting some Terminal Type information from the remote server but failing to receive it. I tried using 100 seconds sleep with no luck. Also i dont what kind of telnet configuration it requires on the remote server to get that Terminal Type information. The "select" is returning 0 which means it is timed out.