Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

make argument when run ".sh" file

I am using "Scheduler component(tQuartzScheduler)" to run job every day specific time.

so I input the specific time, and build job, and run ".sh" in linux

 

But If I want to change the specific time, I have to reset the time in Component and rebuild.

0683p000009MaGq.jpg0683p000009MaGv.jpg

I want to change the specific time  when I run ".sh" file 

 

like  "runjob.sh [0 0 2 1/1 * ? *(cron expression)]"

Is it possible?

 

Labels (2)
7 Replies
Anonymous
Not applicable
Author

This is a custom component shared by Kooin-Shin on Talend Exchange. I have never used it, can you test if the specific time field support context variable? If yes, then you are able to pass the value dynamically when running the job in Command prompt?

Regards
Shong
Anonymous
Not applicable
Author

when I text "t" and CTRL + SPACE .

then looks like below..

Is it possible?

if It possible what component should  I use?

Thanks for your reply

0683p000009MaDy.png0683p000009MZzw.png0683p000009Ma4h.png

Anonymous
Not applicable
Author

You can simply make a testing to see if it supports context variable or not, for example, define a context variable called minutes, and set its default value as *, and then set the Minute column as context.minutes, run the job, any compile error or the job works as expected?
Anonymous
Not applicable
Author

Thanks, I try your solution

but seems didn't work

0683p000009MZxY.jpg0683p000009MaIm.jpg0683p000009MaIr.jpg

Anonymous
Not applicable
Author

If I were okay with context variable could use..

 

what is the next step?

 

I'm just wondering

Anonymous
Not applicable
Author

If it the fields support context variable, then you can run the job script and pass the value to variable like this:
/runjob.sh --context_param var1=value1 --context_param var2=value2

Anonymous
Not applicable
Author

Thaks. shong