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.
1 REPLY
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