I have the following problem: While using the "Build Job" option in Talend to create a executable shell script, this script gets cleary overwritten when I use the "Build Job" option again (e.g. a newer version of the job is created). This means, that all of my declared context variables inside the script are getting deleted. Therefore I want to write a second shell script, in which all of my context is declared and, calls the executable shell script from the "Build Job" option and passes the context to it.
So here is my question: Is it possible to pass context variables from a arbitrary shell script to the executable shell script, without editing the executable shell script?
I am trying to understand your issue. Why you said the context variable are deleted? If you build the same job and with the same path, the context variable are still export in the executable script.
Did you edit the script and pass the new value to context variables?
./jobName_run.sh --context_param VAR1=VALUE1 --context_param VAR2=VALUE2
Can some please tell me how to pass the variable value from my shell script to talend context ?
I want send to tsoap from the shell script output values. if you guys have any step by step guidance.
When you build a job, it's build the job with the parameters that are in your context.
If you are using differents parameters to run the job, you have two options :
1- You create many contexts : Default, Test, Prod, Dev, ...
And simply use the appropriate context when running the job
2. You can create a file with the parameters you want to use in the job, and load it with tContextLoad
Hoping that this will help
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Pick up some tips and tricks with Context Variables
Learn how media organizations have achieved success with Data Integration
Practical steps to developing your data integration strategy.