Metaservlets call from Linux command prompt

Four Stars

Metaservlets call from Linux command prompt

Hi,
We are working on a requirement where we want to call a TEDI job through metaservlets. Based on the documentation I found on Talend site, following command should have worked.
sudo /storage/talend/tac/apache-tomcat/webapps/org.talend.administrator/WEB-INF/classes/MetaServletCaller.sh --tac-url= --json-params={"actionName":"runTask","authPass":"*********","authUser":"bbanerjee@teladoc.com","taskId":12,"mode":"synchronous","context":"Default"}
However, following error is being returned.
{"error":"A JSONObject text must begin with '{' at character 1","returnCode":2}
Not sure if this is a syntax issue or I am missing something. Will appreciate if someone who has worked on similar requirement advises on this. Thanks.
One Star

Re: Metaservlets call from Linux command prompt

Hi,
You have to add simple quote around JSON object :
'{"actionName":"runTask","authPass":"*********","authUser":"bbanerjee@teladoc.com","taskId":12,"mode":"synchronous","context":"Default"}'