Link to home
Start Free TrialLog in
Avatar of binkzz
binkzz

asked on

TCP doesn't timeout properly;

neither can i get information before the buffer runs over.

Is there any way in perl I can get input by the character rather than by the buffer?

Tom
Avatar of flivauda
flivauda

What are you trying to do?
Avatar of binkzz

ASKER

I'm actually trying to connect to several servers on the telnet port, basically read in anything until the login: and then disconnect.

This way I can check the virtual server's handshakes.
ASKER CERTIFIED SOLUTION
Avatar of flivauda
flivauda

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of binkzz

ASKER

That's excellent, but as in my question I really need to do this in perl, not shell.
perldoc Net::Telnet

or, if you don't have that...

http://perl.com/cgi-bin/cpan_mod?module=Net::Telnet
Avatar of binkzz

ASKER

I've got Net::Telnet, that'll time me out and send/recieve data, but it won't actually send me what I need.

I'm currently modifying the Telnet.pm module so it will do what I want it to do. :/

Thanks flivaudaa for your efforts, here's a well deserved 100 points.

Bink
Avatar of binkzz

ASKER

I'm trying to check different server's handshakes, and have the script do different things, dependant on the results.

Mr B