Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Socket connection problem

by Necos (Friar)
on Apr 30, 2002 at 12:14 UTC ( [id://163035]=note: print w/replies, xml ) Need Help??


in reply to Socket connection problem

You have two possible solutions here (at the very least):

1.) Net::Telnet (which can be found here)
Or
2.) Using IO::Socket to build a socket connection and do the socket data-negotiation manually.

Personally, I'd opt for the first solution, since Net::Telnet has been around for a while. In addition to Net::Telnet, you might also consider Net::SSH if you have the ability to do so.

IO::Socket is good to use if you need to define what type of data needs to be passed back and forth (for example, RPC). If you just want to telnet to a box, run a few commands, capture output, and print it to file, you are shooting yourself in the foot (9 times out of 10) by not using Net::Telnet.

Theodore Charles III
Network Administrator
Los Angeles Senior High
4650 W. Olympic Blvd.
Los Angeles, CA 90019
323-937-3210 ext. 224
email->secon_kun@hotmail.com
perl -e "map{print++$_}split//,Mdbnr;"

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://163035]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-18 00:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found