Actually we are not getting any error at all. In above crontab entry, you can see we have redirected the output of that script to /tmp/somelogfile.txt but after running that script, nothing is getting updated in that file.
In cron logs, we can see that the script which we scheduled in crontab got triggered on mentioned time but it didnt get executed.
we tried to run the command from another server like trying to pass the command with ssh option like mentioned below . but it didnt get executed.
Thank you for the additional information! I’ve now tested it myself and managed to make it work. This issue seems to occur when you pass the -jar file before the conf file and when the paths might be broken.
Could you possibly follow the structure below and try again?
For more reference, this is my code I’m running: * * * * * /usr/bin/java -Dconfig.file=/Users/rgu0221/Downloads/prod-setup/application.conf -jar /Users/rgu0221/Downloads/prod-setup/inquire-save-published-queries-6.1.1.jar
You can see whether the cronjob works by looking at the version number when you run the script manually: