Remote Win Bat File execute Shell Script on AIX Server
alrite, sorry if this seems to be a win question.
I have 2 servers... 1Wintel box; another 1 AIX box. At the wintel box, i need a bat file that can execute another shell script living on AIX box. I only know that there is this Psexec command utility in the wintel box; but it only supports windows platform. :( Anybody got any idea on what command to use or can this be done in the first place? :scratch: Thanks in advance |
You basically want to "rsh" from Windows
Hi -
As I understand it, you basically just want to "remote execute" ("rsh" or "remsh" depending on which Unix platform you're talking about); only you want to run "rsh" from a Windows host to Unix, instead of from Unix to Unix. Two points: 1. As far as a "Windows rsh", you have lots of choices. I'd do a Google search, I'd *definitely* check out Microsoft's "Windows Services for Unix" (SFU) download: http://www.microsoft.com/windows/sfu/ 2. As far as "remote shell" on your Unix host - it's probably disabled by default. If so, you'd have to configure the service and set up a local .rhosts file. If you're in a corporate environment, I'd definitely make sure the AIX server's administrator approves - any kind of remote execution (Unix, Windows or anything else) could easily pose a security risk. |
Re: You basically want to "rsh" from Windows
Quote:
However, I might only have the option to execute the AIX shell script from a Wintel bat file.... which "Windows Services for Unix" might not do the job. |
Check out http://www.ssh.com. They have an SSh client for windows that provides command line utilities. You can use promptless ssh to kick on fthe script over on the AIX server from the windows bat script.
|
"rsh remotehost who" works without problem on my Windows 2000 PC. So, you can use it on any Win2k PC without problem, directly or from inside a script.
Regards Zorba |
Quote:
In the name of all that is holy stay away from RSH. I know it seems like a wonderful thing; quick to set up, easy to use, not much administrtion involved. But, there is another angle that seems to be ignored, at least in this thread. SECURITY. RSH is not at all secure, it is too easy to spoof IP addresses and get around the "security" of RSH. If you have even thought about there being a chance, remote as it may be, that it could be compromised DO NOT use RSH. Use something more secure. The fact that RSH even exists in Win2K scares me. Thank God I don't run that thing. |
All times are GMT -5. The time now is 12:46 AM. |