Hi guys .. worked on it yesterday and today and it works.
I used three files. One Batch file, two script files for the telnet client
Thanks for all the help ..
::How it works:
::
:: .Batch file is run
:: .Batch File runs TN3270
:: .Opens Telnet connection to one address and calls a script (passwords.txt)
::
:: .Passwords.txt contains individual commands for each connection
:: Besides password, other specific commands such as banner can be specified here
:: .TN3270 runs passwords.txt
:: .looks up the list of passwords and logs in to the open connection
:: .calls the 'common commands script' -> cmds.txt
::
:: .Cmds.txt contains the common commands to be executed for ALL the devices
:: .TN3270 executes the commands found in cmds.txt
:: .execution is passed back to passwords.txt which exits TN3270
:: .excution is passed back to batch file
::
:: .Batch file opens the second connection using TN3270
:: .The process is repeated
:: .When all devices have been contacted, the batch file closes DOS window.
|