Formally known as "Mercator Inside Integrator 6.7", DataStage TX enables high-volume, complex transactions without the need for additional coding.
Moderators: chulett , rschirm
Balkrishna
Participant
Posts: 4 Joined: Wed Sep 20, 2006 12:07 am
Post
by Balkrishna » Tue Mar 06, 2007 4:40 am
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.
Bala
jgibby
Participant
Posts: 42 Joined: Thu Dec 16, 2004 8:48 am
Post
by jgibby » Tue Mar 06, 2007 10:28 am
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
"Artificial intelligience is no match for natural stupidity."
Balkrishna
Participant
Posts: 4 Joined: Wed Sep 20, 2006 12:07 am
Post
by Balkrishna » Thu Mar 08, 2007 12:27 am
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.
Bala
janhess
Participant
Posts: 201 Joined: Thu Sep 18, 2003 2:18 am
Location: UK
Post
by janhess » Thu Mar 08, 2007 3:22 am
I suggest you read the documentation in PDF 1049.pdf - batch_shell adapter.
jgibby
Participant
Posts: 42 Joined: Thu Dec 16, 2004 8:48 am
Post
by jgibby » Mon Mar 12, 2007 10:56 am
Ditto. If you are asking about the SHL argument, then you need to review the documentation.
John
"Artificial intelligience is no match for natural stupidity."
aviroops
Participant
Posts: 3 Joined: Wed Jan 19, 2011 3:25 am
Location: Pune
Post
by aviroops » Wed Jan 19, 2011 5:29 am
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"
Cheers
Aviroop