|
Answer» Greetings,
I'm trying to use telnet in a batch file.
-The batch file will telnet to a machine -ENTER username and password -Execute a few command -Log output to file then exit
I can not get pass the telnet command
Once the telnet is EXECUTED I can not enter the user name and password.
Help.
Here is what I have so far
@ECHO off echo Ping test for port
telnet 10.10.10.17
admin
admin
Output of PROGRAM:
SunOS 5.9
login:
what app are you trying to run?? Is the remote machine windows based??
if so you can use the freeware, pstools.
pstools has a little exe called psexec which allows you to run PROGRAMS on a remote machine. (very handy, and all from the command prompt)
I've used it loads.
Hope it helps.
Info and donwload link;
http://www.microsoft.com/technet/sysinternals/Security/PsTools.mspx
|