Solved

Telnet Scripting From Text File

Posted on 2009-05-12
3
438 Views
Last Modified: 2012-05-06
Hi Guys,

I need to run a bunch of commands from Telnet and these commands are on a text file. Whats the best program to use for this? I'm searching for a program that will allow me to first login to the telnet server and then execute this script later.

I'll need detailed logs of the outputs so the windows telnet client might not be my best option.

Thanks
0
Comment
Question by:datgigrinch
3 Comments
 
LVL 38

Accepted Solution

by:
Shift-3 earned 250 total points
ID: 24366873
You can use Plink, a command-line tool which comes with PuTTY, to run telnet commands in a batch script.
0
 
LVL 10

Assisted Solution

by:lanboyo
lanboyo earned 250 total points
ID: 24425661
For a more advanced toolset, look for the scripting language expect, which enables you to chose different commands based on output and such. It is a unix application but do a google on expect/tcl for windows.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of my most closely kept secrets is revealed in this discussion How to output text on the same line This question was recently posted in EE by Simon336697 (http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_2459…
If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question