I have below entries in crontab -e ,
0 16 * * * /opt/nginxstack/Dropbox-Uploader/DatabaseDumper.sh > /var/log/cron.log 2>&1
19 20 * * * /opt/nginxstack/Dropbox-Uploader/upload_dump_dropbox.sh > var/log/cron.log 2>&1
The first shell script works fine while the second doesn't get executed. I could not find anything in the log as well. can someone please help. Permissions are set correctly and /opt/nginxstack/Dropbox-Uploader/upload_dump_dropbox.sh
works when run from terminal.I am running as root.
Edit: below is the code i have in upload_dump_dropbox.sh
#!/bin/bash
/opt/nginxstack/Dropbox-Uploader/dropbox_uploader.sh upload /opt/nginxstack/Dropbox-Uploader/mysqldumpsvps/* /mysqlbckfromvps
/
beforevar
). That would cause the script to not execute at all, unlee that path existed in the working directory.