You are here
Home > Linux > Cron Job Hack : Use cURL in a Cron Job

Cron Job Hack : Use cURL in a Cron Job

Hi Friends, Hope you guys are doing well. It’s been a long time I haven’t share anything but today I am going to share how to use cURL in a cron job. It is useful when sometimes your server’s cron job is not acting as per your expectations or it has some restrictions.

In this condition, you can take help from another server using this command.

If you don’t want to get a notification email every time when cron job executes so you can use it.

So the complete command will look like it.

You can get help to set timings for execution for cron job

Here are 3 examples of cron jobs

The first cron job is executed every 5 minutes

In the 2nd example, the cron job executes every 23 hours

In the 3rd example, Cron Job executes every Saturday 05:33. A cron job week start from Monday. so Saturday will be the 6th day of the week.


I hope with the above examples you have learned of the functioning of CRON JOB using cURL. Please do like & share. It motivates us to keep working to post useful content.

Vivek Pal
I am a Web Developer with strong specifications in CMS as Wordpress Magento etc. Having good Knowledge of HTML, CSS, Bootstrap Photoshop Cloud Solution (G Suite, O365, GCP, Amazon AWS), Domains, Hosting, etc. I also have a good knowledge of Internet marketing. (SEO, SMO, PPC), I have more than 5 years of experience. I consistently deliver creative scalable solutions that reflect the personality needs the vision of my clients