*/5 * * * * /home/owner/scripts/upload_main.sh


flock -xn /home/owner/locks/upload.lck -c /home/owner/scripts/upload_silent.sh


rclone move /home/owner/gdrive/Movies/ gdrive:movies --transfers=6  --no-traverse --quiet
rclone move /home/owner/gdrive/"TV Shows"/ gdrive:tv --transfers=6  --no-traverse --quiet
# remove empty directories
find /home/owner/gdrive/Movies/* -empty -type d -delete 2>/dev/null
find /home/owner/gdrive/"TV Shows"/* -empty -type d -delete 2>/dev/null

my crontab is not executing the upload_main.sh script, but running the scripts standalone works. grep CRON shows that the cron is running without any errors.

i'm on a non-root user account ubuntu 14.04.

3 Answers 3


Since you are not redirecting the output of your cronjob to >/dev/null 2>&1 (which is fine for debug) the output should be "mailed" to your user account. Check /var/mail to read your messages and look for the cron output. You should find the error there.


If you have a blank line at the end of your crontab, it can prevent it from executing.

I know that wasn't the problem here, but it was the answer for me when I had the same problem!


Found the issue, I had to use rclone's full path: /usr/local/bin/rclone

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.