Page 1 of 1
How to call Shell script from a dstx map?
Posted: Tue Mar 06, 2007 4:40 am
by Balkrishna
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.
Re: How to call Shell script from a dstx map?
Posted: Tue Mar 06, 2007 10:28 am
by jgibby
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'"
)
John Gibby
Re: How to call Shell script from a dstx map?
Posted: Thu Mar 08, 2007 12:27 am
by Balkrishna
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.
Code: Select all
=GET(
"SHL"
,"-cli -cmd 'Purge.sh'"
)
John Gibby
Hi John,
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.
Posted: Thu Mar 08, 2007 3:22 am
by janhess
I suggest you read the documentation in PDF 1049.pdf - batch_shell adapter.
Posted: Mon Mar 12, 2007 10:56 am
by jgibby
Ditto. If you are asking about the SHL argument, then you need to review the documentation.
John
Posted: Wed Jan 19, 2011 5:29 am
by aviroops
Hi jgibby,
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" )
This works fine when you have to execute a script named as "test.sh"