How to pass parameter value dynamically to call the service in shell script ?

Six Stars

How to pass parameter value dynamically to call the service in shell script ?

How to pass parameter value dynamically to call the service in shell script :

 

We need to run the shell script in linux how to pass the value like below mention same,

 

For Example :

sh sampletalendEmail.sh fromMail toMail 

 

Can we give the solution for this???

 


Accepted Solutions
Highlighted
Community Manager

Re: How to pass parameter value dynamically to call the service in shell script ?

Hi

You can pass the parameter value dynamically when executing the job script out of studio. eg: 

sh sampletalendEmail.sh --context=Default --context_param from_mail=value1--context_param to_mail=value2

 

Let  me know if you still have any issues.

Regards

Shong

----------------------------------------------------------
Talend | Data Agility for Modern Business

View solution in original post


All Replies
Highlighted
Community Manager

Re: How to pass parameter value dynamically to call the service in shell script ?

Hi

You can pass the parameter value dynamically when executing the job script out of studio. eg: 

sh sampletalendEmail.sh --context=Default --context_param from_mail=value1--context_param to_mail=value2

 

Let  me know if you still have any issues.

Regards

Shong

----------------------------------------------------------
Talend | Data Agility for Modern Business

View solution in original post

Six Stars

Re: How to pass parameter value dynamically to call the service in shell script ?

Thanks a lot ,
how to call same like as URL???
can you help me for the further process.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog