How to setup cron job

I have setup 2 cron jobs to run every 5 minutes for these two links below. how do I check to see if those cron are running? and are those settings/command are correct?

*/5 * * * * curl -s */5 * * * * curl -s

Please advise


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there @Haitiancorner,

I think that the cron jobs might not be running correctly because of the & sign in your URL, it is a special character and it might be causing some unexpected behavior.

What I would do is to add the URLs in quots:

*/5 * * * * curl -s ''
*/5 * * * * curl -s ''

After that change, you could check the /var/log/syslog log to see if the corn jobs are running every 5 minutes.

Let me know how it goes! Regards, Bobby