How do I program a Cron task in cPanel?

Procédure

What is a cron job?

A cron job is a process that executes commands at specific dates and times. You can use cron tasks to schedule activities as one-off events or as recurring tasks.

For example, you can set a task to run every 5 minutes, every hour, every day or every week.

You can be notified when a cron job is run by entering your email address when you set it up.

How do I schedule a cron job in cPanel?

1. Log in to your cPanel account, scroll down the page and click on the "Cron tasks" icon.

How do I program a Cron task in cPanel?

2. Update your email address. This will allow you to be informed when the cron job is run.

How do I program a Cron task in cPanel?

3. Fill in the cron job parameters and the command to be run, then click on the"Add a new cron job" button.

Common parameters: The common parameters are used to define the number of times the cron job should run.

Command: This is the script you want to run.

How do I program a Cron task in cPanel?

4. All cron jobs are visible at the bottom of the page.

How do I program a Cron task in cPanel?

cPanel tutorial video: How do I program a cron job in cPanel?


Need help using cPanel?

See all our cPanel training videos

Modifying and deleting a cron job

You can modify or delete a cron job at any time via your cPanel web hosting. To do this, log in to your cPanel hosting and click on the"Cron tasks" button in the "Advanced" section of your dashboard.


Conclusion

You can now create, modify or delete a cron job from your cPanel web hosting with LWS. You can be informed by email of the execution of the cron task by modifying it.

Don't hesitate to share your comments or questions!

Rate this article :

3/5 | 1 opinion

This article was useful to you ?

Article utileYes

Article non utileNo

Vous souhaitez nous laisser un commentaire concernant cet article ?

Si cela concerne une erreur dans la documentation ou un manque d'informations, n'hésitez pas à nous en faire part depuis le formulaire.

Pour toute question non liée à cette documentation ou problème technique sur l'un de vos services, contactez le support commercial ou le support technique

MerciMerci ! N'hésitez pas à poser des questions sur nos documentations si vous souhaitez plus d'informations et nous aider à les améliorer.


Vous avez noté 0 étoile(s)

Similar articles

0mn reading

How do I connect to cpanel via SSH using putty?

1mn reading

How do I resolve the ERR_CONNECTION_REFUSED error on cPanel?

1mn reading

How can I use WP-CLI to manage my WordPress instance on cPanel?

2mn reading

How do I create cPanel hosting sub-accounts?


Ask the LWS team and its community a question