Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

How Can I use a socket like telnet?

by mr_leisure (Beadle)
on Dec 21, 2000 at 19:01 UTC ( #47793=perlquestion: print w/replies, xml ) Need Help??

mr_leisure has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: How Can I use a socket like telnet?
by ChOas (Curate) on Dec 21, 2000 at 19:16 UTC
    Use Net::Telnet

    From the doc:
    use Net::Telnet (); $t = new Net::Telnet (Timeout => 10, Prompt => '/bash\$ $/'); $t->open("sms.server.inter.net"); $t->login($username, $passwd); @lines = $t->cmd("sms.pl-msg=$opt{msg} -num=123456789"); print @lines;

    Bye!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2021-09-23 19:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?