Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

( #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? 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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2014-10-25 16:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (145 votes), past polls