Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Telnet Scripting

Status
Not open for further replies.

BryanY

MIS
Aug 18, 2001
54
0
0
US
What's the best way to go about writing a script that executes commands after it telnets to a device?

Can i do this with a regular shell script? or would I have to write an Expect script?
 
IMHO the Expect script is the best approach.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
I'd never heard of Expect before this post. Learn something new everyday. I looked this up and it looks like an interesting tool.

I've been working on a perl script to do this but it doesn't work right. Sometimes I get it to work and sometimes not. So I'm going to check out Expect. :D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top