Post a reply

Write your message and submit

Options

Click in the dark area of the image to send your post.

Go back

Topic review (newest first)

WilliamB
2011-10-28 15:49:03

Shong, i want to put a string with space as a parameter in command line, how can i do it? (This is to set the email title)
Actually the string is truncated at the first space.

shong
2010-03-04 04:10:13

Hello

TalendTeam, is this correct?

Yes, you are right.

Best regards

          shong

saladspoon
2010-03-03 22:22:09

okay, after mucking around with it, finally got it to work.  Seems like the format it accepts is:

./job_test_run.sh --context_param etl_started_at="yyyy-MM-dd-HH:mm:ss;2010-03-01-00:00:00"

Note that i have to put a dash between dd and HH to get it work, putting a space doesn't work.

TalendTeam, is this correct?  Thanks

saladspoon
2010-03-03 22:11:42

I got it work like this (as suggested in the topic http://www.talendforge.org/forum/viewtopic.php?id=7639)

./job_test_run.sh --context_param etl_started_at="yyyy-MM-dd;2010-03-01"

However, i can't get it to work with time portion.  something like this

./job_test_run.sh --context_param etl_started_at="yyyy-MM-dd HH:mm:ss;2010-03-01 00:00:00"

Any idea?  Thanks

saladspoon
2010-03-03 21:46:46

Hi,

How do you pass a date context to talend job via commandline?  I was able to get it work in windows but not on unix.

For example, the following works (note I have to put double quotes):

job_test.bat --context_param some_date="2010-03-01 00:00:00"

But the same job running in unix doesn't:

./job_test.sh --context_param some_date="2010-03-01 00:00:00"

the return value is null

thanks!
Sarah

Board footer

Powered by FluxBB