Hi All
I am trying to get the JQL result through a standard REST API curl script.
The curl script works fine on its own when invoked manually, but the moment i set it up as a cron it falls apart. It doesnot generate any JQL output.
Anyone with some expertise on Linux/Cron jobs can suggest what maybe going wrong here?
Community moderators have prevented the ability to post new answers.
I got it to work, there was a relative path in my script and crontab was not able to resolve it,
Within a cron job, there are no environment variables set and the job runs as a generic user. If you are depending on system/user settings, this could cause a failure. As @Gabrielle Bautista above discusses, make sure (at least during debugging) that you save STDOUT and STDIN to a file. Make sure you print the command before executing top verify that the command line is what you expect.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What do you mean by it falls apart? What does your cron entry look liked? Have you redirected the outputs to a particular location or to the void? (/dev/null)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.