unable to override context variables in properties file

One Star

unable to override context variables in properties file

Hi, I have 2 context variables I'm trying to override when I run command line shell script, I have tried both
bash CustomerInfo_run.sh --context_param TODAYDATE="2012-06-07" --context_param TODAY_DATE="06/07/2012"
bash CustomerInfo_run.sh --context_param TODAYDATE=2012-06-07 --context_param TODAY_DATE=06/07/2012
The default values for both variables are 2012-06-06 and 06/06/2012. When I run the script, it didn't pick up the overriding values.
One Star

Re: unable to override context variables in properties file

Hi
Welcome to Talend Community!
I test the command 'bash CustomerInfo_run.sh --context_param TODAYDATE=2012-06-07 --context_param TODAY_DATE=06/07/2012' and it works fine.
Or
chmod +x CustomerInfo_run.sh
./CustomerInto_run.sh --context_param TODAYDATE=2012-06-07 --context_param TODAY_DATE=06/07/2012
Regards,
Pedro

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 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

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog