1752815 Members
5877 Online
108789 Solutions
New Discussion

Telnet Script

 
SOLVED
Go to solution
John Meissner
Esteemed Contributor

Re: Telnet Script

I use expect to telnet out to other servers (linux and HP-UX) it is fantastic and can be found here: http://expect.nist.gov/

it's SOOOOO easy to use.
All paths lead to destiny
John Meissner
Esteemed Contributor

Re: Telnet Script

sorry for the double post (the one above)
no points for that one please

one nice thing about expect is that it has a build it script writter called autoexpect

if you are having errors you can use autoexpect to automatically generate a script for you.

just type:
autoexpect -f filename telnet servername

and proceed to log in
once you are done hit Ctrl D (or Ctrl C - i can't remember which) and expect will write a script of your session to "filename" you specified in your command line. edit that file and remove some of the unnecessary lines and you'll be all set
All paths lead to destiny