I have created one shell script on UNIX server (Purge.sh) and i want to run this shell script using Datastage TX (7.5.1) map.
How can i do the same? Thanks for your help in advance.
How to call Shell script from a dstx map?
-
- Participant
- Posts: 4
- Joined: Wed Sep 20, 2006 12:07 am
Re: How to call Shell script from a dstx map?
Balkrishna wrote:I have created one shell script on UNIX server (Purge.sh) and i want to run this shell script using Datastage TX (7.5.1) map.
How can i do the same? Thanks for your help in advance.
Code: Select all
=GET(
"SHL"
,"-cli -cmd 'Purge.sh'"
)
"Artificial intelligience is no match for natural stupidity."
-
- Participant
- Posts: 4
- Joined: Wed Sep 20, 2006 12:07 am
Re: How to call Shell script from a dstx map?
Hi John,jgibby wrote:Balkrishna wrote:I have created one shell script on UNIX server (Purge.sh) and i want to run this shell script using Datastage TX (7.5.1) map.
How can i do the same? Thanks for your help in advance.John GibbyCode: Select all
=GET( "SHL" ,"-cli -cmd 'Purge.sh'" )
First of all, Thanks for your help.
Can you please explain me the meaning of the term -cli, -cmd and SHL ? In short how it will execute ..? It will be great help to me.
Bala
Hi jgibby,
I have implemented your code but it doesn't seem to work.
There is a bit of modification
This works fine when you have to execute a script named as "test.sh"
I have implemented your code but it doesn't seem to work.
There is a bit of modification
Code: Select all
=GET( "SHL" , "-cli -cmd" +" test.sh" )
Cheers
Aviroop
Aviroop