Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I'm trying to run curl from a Talend job. If i log into the Talend instance and run the curl command it works. However, when i build the same command in a context variable and run it in the cloud, i can see from the log files that tSystem is enclosing the command in single quotes which is stopping it from running.
Any ideas how to stop this?
curl command
curl -X POST -H 'Accept: application/vnd.pagerduty+json;version=2' -d '{ "routing_key": "MY_KEY_GOES_HERE", "event_action": "trigger", "images": [], "links": [], "payload": { "summary": "pagerduty_tester - Test Msg 2", "source": "production", "severity": "info" } }' 'https://events.pagerduty.com/v2/enqueue'
Talend Job
Screenshot of log file
I know i could probably build a sh file dynamically, run it then delete it but this process is trigger by the tLogCatcher and so will be called many times during execution so i don't really want to do that.