Remote Win Bat File execute Shell Script on AIX Server
AIXThis forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
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.
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:
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.
Thanks for the advice.
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
Originally posted by zorba4 "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
ACK!!! NO, DON'T DO IT!! PLEASE, DON'T DO IT!!
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.