I was wondering if anyone knew if I could write a shell script that utilized the korn shell capabilities of the MKS Tool kit to have this script execute in a windows environment. The reason for this is that my test and prod boxes will run on HP UX. This way I do not have to re-write any scripts that I may develop on windows.
Any ideas?
Thanks for the help as always.
MKS Toolkit
Moderators: chulett, rschirm, roy
Sure, just bear in mind that being 99.9% compatible doesn't guarantee thatit will work correctly in both Windows and UNIX environments. DataStage doesn't notice a difference when doing external calls - apart from choosing your external call type (DOS/UNIX), but you can use a call to system(91) to determine your OS type.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
Stick to the basics and you'll be fine. I write a lot of scripts using MKS and they're extremely portable. The worst problem is dealing with Windoze filenames and such.
Kenneth Bland
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Yeah, but beware of filenames with embedded whitespace.
You have to make sure that all command line strings enclose all file/path with Double Quotes, meaning that you have to take pains to escape the DQ correctly inside DataStage.
Don't get me wrong, I *like* MKS, but it can be a PITA.
Since your real target is UNIX, if you stick to all UNIX-friendly path/file names, you should be OK.
Carter
You have to make sure that all command line strings enclose all file/path with Double Quotes, meaning that you have to take pains to escape the DQ correctly inside DataStage.
Don't get me wrong, I *like* MKS, but it can be a PITA.
Since your real target is UNIX, if you stick to all UNIX-friendly path/file names, you should be OK.
Carter