Easily configure a performant, secure, and stable NGINX server.Learn More
cURL with cron job not working
I’ve tried to create a cron job with a curl to a specific page on my website. On that page, when loaded, it’s sending out an e-mail to some specific people. I’ve tested the script, and it’s working just as intended.
What I’ve done to enable my cron job is:
- Log in to my server
sudo crontab -e
* 17 * * * curl http://url.com/cron/emailto the file and saved
What I tried to here was to make a cron job calling the url once a day at 5pm. For some reason this is never happening - not even at another time of the day, it’s like it’s never run.
What am I doing wrong?
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.×