Executing Unix Shell Script
Moderators: chulett, rschirm, roy
Executing Unix Shell Script
We are running Oracle 9i on a Solaris 8 box and I was wondering if there is anyway to execute a shell script that is on that remote box?
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
Running RSH on Windows
You will be able to use rsh and many other Unix like commands if you install cygwin on your windows installation.mkeevil wrote:DS is running on Windows, can't use rsh right????
mkeevil wrote:Where can I download cygwin and find the documentation for it? Is there a way to do it with Native DS? without installing any other products?
Cygwin is free, and you can find more information about it here:
http://www.cygwin.com/
I am able to run rsh from a windows cmd prompt, which means you should be able to do it from DataStage on windows platform.
I am not a windows expert, so I am not aware of any other windows method to accomplish the same task.
Running rsh from windows command line.
To execute any windows command from command line, the location of that executable must be in the %PATH% environment variable.mkeevil wrote:I installed the product to my computer to test it, and it placed an icon on my PC... I can run shell commands when I use the executable that it installed but how do I run them from the dos command line?
To check if this is so:
1. start cygwin shell and type 'cygpath -w /' This should return the root of the cygwin installation, which is typically "c:\Cygwin" or "c:\Program Files\Cygwin".
2. Check MyComputer->Properties->Advanced->EnvironmentVariables->System Variables->Path value to see if it contains the path returned from step 1 with \bin at end.
3. If not add this path with \bin at end to the path and retry running rsh from command line.