Take the 2-minute tour ×

I need to write a script, that can automate few things:

a) telnet to a router

b) issue configuration commands.

c) check for status(success/error)

What language/framework should I use?

I only know about "expect".

What are other better alternatives?

share|improve this question
Is there any specific reason you don't prefer expect? For tasks such as these, expect is the tool. –  Rohit Jul 25 '09 at 8:06
No specific reason, just want to know is there anything even better. –  Aman Jain Jul 25 '09 at 8:19

3 Answers 3

If you don't want to use expect, you're probably going to end up using some more standard scripting language which is less specifically well-suited to the task. If you get into that realm, the proper answer is "anything you feel comfortable with", be that bash, python, or whatever else.

It's a pretty general problem, so use whatever produces an easy-to-maintain system.

share|improve this answer
I came here expecting to post about expect. –  Sean A.O. Harney Jul 25 '09 at 8:18

you can make use of Jcraft an open source tool.

share|improve this answer

You can try using Ganymed SSH2 a Java Open Source API to connect to Remote Machines. I used it for secured remote login. You may even check my blog for referene http://allianceglobalservices.com/blog/terminal-window-automation-using-ganymedssh-2-api

share|improve this answer

Your Answer


