scripts nor working in crontab
Server: Red Hat Enterprise Linux Server release 7.4
My script contains only:
curl -u admin:123!@ -X POST http://localhost:4502/system/console/jmx/com.adobe.granite:type=Repository/op/startBackup/java.lang.String?target=/opt/prod_auth_backup/
Crontab entry:
30 14 * * * /bin/bash /opt/scripts/backup_author.sh
I can manually run the script but its not working in crontab.I already tried couple of things from below URLs but did not help.
https://access.redhat.com/discussions/3450011
https://serverfault.com/questions/748835/linuxredhatcrontab-bash-script-working-from-shell-but-not-in-crontab-ass
regards
Sina
Responses
- When posting code snippets, use the requisite code tags. Makes things a lot easier for your readers to parse your post. See the "Formatting Help" link for appropriate MarkDown to use for code.
- Whenever you have a URL that has "special" characters in it, it's a good idea to protect those characters with either single- or double-quotes around the URL.
- Beyond the above, it's hard to provide assistance without relevant error-logs.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
