Cannot get basic cron / cronjob to run (following the DO tutorial)
My droplet is running Ubuntu 14.04 and I am using ServerPilot to manage it (although I don’t think that matters for my question). I have followed the Digital Ocean tutorial for “how to use cron to automate tasks on a vps”, here: https://www.digitalocean.com/community/tutorials/how-to-use-cron-to-automate-tasks-on-a-vps
But I get nothing happening…no cronjob runs, no email sent. Can anyone help me with what to do next - to troubleshoot or what else to try? This is currently what is in my crontab (copied from the tutorial, just replaced the example email with my email):
SHELL=/bin/bash HOME=/ MAILTO=”firstname.lastname@example.org” #This is a comment * * * * * echo ‘Run this command every minute’
EDIT: When I enter crontab with
crontab -e the file location is listed as “/tmp/crontab.0aXfre/crontab”…could that location be the problem?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×