in reply to Telnet via Perl fails
If telnet succeeds, it won't return. If telnet fails, you've lost anyway.
perlipc goes into this in detail, prepare yourself for a big, complicated read.
But what will work better for what you want is to open a socket directly to the telnet port, and read using select() calls , and sysread ans syswrite, IIRC.
Networking is complicated, so this will take a while to figure out. Keep at it though, it's the most fun bit of computing (for me).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Telnet via Perl fails
by shamala (Acolyte) on May 22, 2004 at 07:25 UTC | |
by bart (Canon) on May 22, 2004 at 09:09 UTC | |
by jepri (Parson) on May 22, 2004 at 08:31 UTC | |
by shamala (Acolyte) on May 22, 2004 at 10:24 UTC | |
by punkish (Priest) on May 22, 2004 at 18:50 UTC |