AIX This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-22-2004, 10:47 PM
|
#1
|
|
Member
Registered: Mar 2004
Posts: 70
Rep:
|
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?
Thanks in advance
|
|
|
|
05-23-2004, 12:27 AM
|
#2
|
|
Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,861
Rep: 
|
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.
|
|
|
|
05-23-2004, 12:59 AM
|
#3
|
|
Member
Registered: Mar 2004
Posts: 70
Original Poster
Rep:
|
Re: You basically want to "rsh" from Windows
Quote:
Originally posted by paulsm4
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.
|
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.
|
|
|
|
05-23-2004, 08:45 AM
|
#4
|
|
Member
Registered: Dec 2003
Location: Little Rock, AR
Distribution: Fedora Core 2, AIX, HP-UX, Solaris, Whitebox
Posts: 193
Rep:
|
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.
|
|
|
|
05-26-2004, 05:47 AM
|
#5
|
|
Member
Registered: Feb 2004
Location: Paris
Posts: 398
Rep:
|
"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
|
|
|
|
05-26-2004, 06:24 PM
|
#6
|
|
Member
Registered: Dec 2003
Location: Little Rock, AR
Distribution: Fedora Core 2, AIX, HP-UX, Solaris, Whitebox
Posts: 193
Rep:
|
Quote:
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:14 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|