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? | [reply] |
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.
| [reply] |
The problem is when i use the select(undef, undef, undef, 5) in my perl module, it returns 0.
As it should, since zero file handles became signaled since you didn't provide any.
By the way, how come you're not using sleep(5)?
| [reply] [d/l] |