Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Answer: How do I telnet into a machine and then to a third one?

by loosifer (Novice)
on May 21, 2002 at 02:07 UTC ( #168029=categorized answer: print w/replies, xml ) Need Help??

Q&A > network programming > How do I telnet into a machine and then to a third one? - Answer contributed by loosifer

Use Expect.pm or expect (the separate binary). Either should work for your purposes. Expect (the binary) is a strange language to use, so you might as well use Expect.pm if it will do everything you want.

As I recall, it works fine for telnet, but it can have problems with SSH. I have used it for doing nested telnets, and once you get past the initial barrier of how it works, it's pretty easy to use.

  • Comment on Answer: How do I telnet into a machine and then to a third one?
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2017-07-28 16:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (431 votes). Check out past polls.