cancel
Showing results for 
Search instead for 
Did you mean: 

How can I call shell script program through BODS exec function

0 Kudos

Hi,

I have created a shell script in BODS job server and I am using BODS 4.2 version.

Now I am trying to call the shell script using BODS exec function.

Can anyone help me about this.

my unix shell script name is - delete_markup.sh

Server Path  where I have written the shell script - /usr/BODS/script

Thanks & regards,

Kaushik Chakraborti.

View Entire Topic
0 Kudos

If your script is not expecting any input parameters then you have used below syntax to call this shell script.....

exec('/usr/BODS/script/delete_markup.sh',0);

if you need to pass one parameter($1) then use below syntax

exec('/usr/BODS/script/delete_markup.sh','[$1]',0);

Hope this helps you.

former_member246062
Participant
0 Kudos

Hi Vamshi,

I have included one of my Shell script in a Job .

The script created a dummy file after checking all my conditions successful if the conditions fails it will not create a file.

I need to go to the next step in my job based on the dummy file availability. If dummy file is not there the job need to exit reporting it is missing.

How can I achieve this?