more useful options | |
PerlMonks |
Re: Telnet via Perl failsby jepri (Parson) |
on May 22, 2004 at 06:46 UTC ( [id://355557]=note: print w/replies, xml ) | Need Help?? |
The program will halt until telnet finishes on line six, and returns a value. 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).
In Section
Seekers of Perl Wisdom
|
|