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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

how to run job with tsystem component with command line arguments

hi,
I have one script file name "test.sh", with 2 command line args as
. /home/revanth/test.sh revanth raja
i gave in tsystem component
new String[]{"/bin/bash","-c",". /home/revanth/test.sh", context.arg1,context.arg2}
given argument values revanth and raja through contexts.
but when run this job in unix it won't give any result (it simply running for a long time more than 20 mins and so i have killed it)
how to run this job
Labels (2)
1 Reply
Anonymous
Not applicable
Author

Hi
If you want to pass context_param into sh script, the String[] should be like this.
new String[]{"/bin/bash","-c","/home/revanth/test.sh --context_param new1=revanth --context_param new2=raja"}
or
new String[]{"/bin/bash","-c","/home/revanth/test.sh"+context.new1+context.new2}
Regards,
Pedro