Tech Tutorials Database
GeekArticles Web Programming Perl
 

Using perl to connect to remote hosts via telnet.

 
Author: perlfect.com
Category: Perl
Comments (0)

Did you think it was easy? Suppose you needed to open a connection to a remote host from within your perl program. One thing you would probably think of doing at first is the following: open TELNET "|telnet $hostname"; print TELNET "$username "; print TELNET "$password "; ... Unfortunately, if you try this, you'll find it doesn't work. The telnet program connects to the remote host but it completely ignores any commands you pipe to it. That's because the telnet program reads it input...n

Read More...




Sponsored Links




Read Next: Perl, Sockets and TCP/IP Networking



 

 

Comments