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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
param75
Contributor III
Contributor III

Use multiply "job-context-param" in commandline executeJobOnServer

Hello,
I deploy and launch a job to an Server with the commandline. I success to pass one context but not several.
My command with one context :
./Talend-Studio-linux-gtk-x86_64 -nosplash -application org.talend.commandline.CommandLine initRemote URL_TAC logonProject -pn Projet -ul Login -up Psw deployJobToServer Job -es ServerExec -jv JobVersion -jc Context -jactc -un Login -pd Psw executeJobOnServer Job -jcp name=file_test.csv

My command with two contexts :
./Talend-Studio-linux-gtk-x86_64 -nosplash -application org.talend.commandline.CommandLine initRemote URL_TAC logonProject -pn Projet -ul Login -up Psw deployJobToServer Job -es ServerExec -jv JobVersion -jc Context -jactc -un Login -pd Psw executeJobOnServer Job -jcp "name=file_test.csv new1=pm"
When I have several contexts I have this error : "Unexpected new1=pm while processing"
What is the good syntax for doing that ??

Thank you,
Carole
Labels (2)
4 Replies
Anonymous
Not applicable

Hi Carole
The command should be like this.
./Talend-Studio-linux-gtk-x86_64 -nosplash -application org.talend.commandline.CommandLine initRemote URL_TAC logonProject -pn Projet -ul Login -up Psw deployJobToServer Job -es ServerExec -jv JobVersion -jc Context -jactc -un Login -pd Psw executeJobOnServer Job -jcp name=file_test.csv new1=pm
There is no double quotation.
Regards,
Pedro
param75
Contributor III
Contributor III
Author

Hi Pedro,
It doesn't work with this syntax. I have the same error :
"Unexpected new1=pm while processing"
(I've changed the name of my second context variable. new1 become suffix)

Best Regards,
Carole
Anonymous
Not applicable

Hi Carole
Try this please. I'm sure it will work fine.
./Talend-Studio-linux-gtk-x86_64 -nosplash -application org.talend.commandline.CommandLine initRemote URL_TAC logonProject -pn Projet -ul Login -up Psw deployJobToServer Job -es ServerExec -jv JobVersion -jc Context -jactc -un Login -pd Psw executeJobOnServer Job -jcp name=file_test.csv -jcp new1=pm
Regards,
Pedro
param75
Contributor III
Contributor III
Author

:-S it doesn't work yet.
I have this error :
Unexpected value "suffix=pm" found while processing -jcp
That's strange, I don't find any example of the same case in Talend documentation...
Do you think it's a bug ?

Thank you for your help,
Carole