Hi,
I am trying to write a script that simple executes a command on the telnet to a host and port and saves a 'result.txt' in the same directory.
-------------
Example:
-------------
test>telnet test.host.com 9999
Trying ..
Connected to test.host.com
Escape Character '^]'.
<command to execute>
{should output results}
-------------
This works fine showing results when tried to telnet and execute a command. I have a list of commands in a text file I like to execute when connected to a <host & port> on telnet.
Need help as to what packages to use and how. I have never tried this type before, but would appreciate if an expert can help.
balji9
{preethib@yahoo.com}
I am trying to write a script that simple executes a command on the telnet to a host and port and saves a 'result.txt' in the same directory.
-------------
Example:
-------------
test>telnet test.host.com 9999
Trying ..
Connected to test.host.com
Escape Character '^]'.
<command to execute>
{should output results}
-------------
This works fine showing results when tried to telnet and execute a command. I have a list of commands in a text file I like to execute when connected to a <host & port> on telnet.
Need help as to what packages to use and how. I have never tried this type before, but would appreciate if an expert can help.
balji9
{preethib@yahoo.com}