A cron job lets you automate scheduled executions. Imagine you want to check incoming emails for a support ticket system. With a cron job you can have the email checked automatically every 5 minutes, every hour, once a week, or any other interval you want to schedule.
Essentially, the purpose is to automate repetitive tasks.
Some example tasks:
– Delete temporary files once a day.
– Cron processes generated by WordPress, Joomla, PrestaShop, and other widely used applications.
Free hosting accounts include 1 cron job that can run at a maximum frequency of once every 10 minutes.
Our professional hosting services can run cron processes every 5 minutes or more frequently.
This article is not intended to be a cron tutorial, so we include some references that may be very useful when learning more about scheduled tasks in Linux:
How Many Crons Can You Install?
In principle, as many as you need — which is usually not very many. If you need a very large number of crons, we would need to evaluate the impact on the server.
SYNTAX: Cron Task Syntax
* * * * * * Command to run
– – – – –
| | | | |
| | | | +— day of the week (0 – 6) (Sun = 0)
| | | +—– month (1 – 12)
| | +—— day of the month (1 – 31)
| +——- hour (0 – 23)
+——— minute (0 – 59)
https://crontab.guru/ lets you define the schedule and frequency at which the process will run.
https://desarrollowebtutorial.com/ejemplos-de-crontab/ A collection of examples that can help you understand how cron works.
Free Hosting with Cron Jobs
If you need a cron job for your website and your free hosting does not offer one, come to Bacan.com — we provide cron jobs even on our free service.