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.