Five Stars

using command promt parameters while running.sh file

HI,

 

I need to develop jobs such that when we build the job while we run the .sh file we need to give parameters along with and we need to take parameters and use them and produce output.

 

After we build our talend  job and extract in linux machine suppose we are running .sh file param1,param2;  we take  them and use them and produce output.

 

Routine: routine has all the functions that we need to use in job

 

Abc.sh param1,param2----------->Talend job collects param1,param2  uses functions of routines in job-----------> return output

                                                                 |

                                                                 |

                                                                 |------>Routine has functions that we need to use

can any one help me with this?

1 ACCEPTED SOLUTION

Accepted Solutions
Thirteen Stars TRF
Thirteen Stars

Re: using command promt parameters while running.sh file

You can define parameters as context variables then pass values from the command line using the following syntax for each parameter:
--context_param yourParameter=yourValue

TRF
1 REPLY
Thirteen Stars TRF
Thirteen Stars

Re: using command promt parameters while running.sh file

You can define parameters as context variables then pass values from the command line using the following syntax for each parameter:
--context_param yourParameter=yourValue

TRF