LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 05-22-2004, 10:47 PM   #1
DriveMeCrazy
Member
 
Registered: Mar 2004
Posts: 70

Rep: Reputation: 15
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
 
Old 05-23-2004, 12:27 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
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.
 
Old 05-23-2004, 12:59 AM   #3
DriveMeCrazy
Member
 
Registered: Mar 2004
Posts: 70

Original Poster
Rep: Reputation: 15
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.
 
Old 05-23-2004, 08:45 AM   #4
looseCannon
Member
 
Registered: Dec 2003
Location: Little Rock, AR
Distribution: Fedora Core 2, AIX, HP-UX, Solaris, Whitebox
Posts: 193

Rep: Reputation: 31
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.
 
Old 05-26-2004, 05:47 AM   #5
zorba4
Member
 
Registered: Feb 2004
Location: Paris
Posts: 398

Rep: Reputation: 31
"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
 
Old 05-26-2004, 06:24 PM   #6
looseCannon
Member
 
Registered: Dec 2003
Location: Little Rock, AR
Distribution: Fedora Core 2, AIX, HP-UX, Solaris, Whitebox
Posts: 193

Rep: Reputation: 31
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to run bat file from Unix script??? gopi_20us Programming 10 09-14-2010 09:15 AM
shell script using /etc/cron.hourly to execute cron.php file? rioguia Programming 3 06-11-2008 08:09 AM
cannot execute script file from shell shahrahulb Linux - General 4 03-04-2008 07:02 AM
shell script won't execute brandnewbie Linux - Newbie 7 08-10-2004 01:30 PM
shell script how to execute x2000koh Programming 6 07-29-2003 04:20 PM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 01:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration