Morning all
Quick question for the windows experts here,
I am looking to write a small batch file that will let me execute a script on a remote unix(well sunos) host, just by double clicking on this bat file in windows.
My original plan for doing this would be to open up a telnet/ssh session, and execute the command, then get the results back and print them to the screen - in a similar way to what you can do unix->unix with a shell script and rlogin/rsh.
However, i've hit a problem. I cannot seem to find a way to open a session with the unix server from windows without some 3rd party software. Telnet always prompts for a login, and this is the only way I can find to get a unix session from windows.
I can do this with a little .NET app easily enough, but I would prefer to be able to have a simple bat file that I can guarentee will run on any windowsXP installation - rather than relying on .NET to be installed (yes I know I could do it in another language but for various reasons its .NET or a bat file)
So my question is - does anyone know how I can achieve this with a bat file?
Thanks in advance for your help
Spud/Pete


LinkBack URL
About LinkBacks
Reply With Quote