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!

help.lws.net/a/684
Was this article helpful?

Yes

No

Read 27 251 times

Thank you! Feel free to ask questions about our documentation if you would like more information, and help us improve it.

Similar articles

A question about this article?

Ask the LWS team and the community. Answers are published after moderation.

Ask the LWS team and its community a question

GDPR: Controller: LWS-Ligne Web Services. Purpose: moderation and public publication of your question, possible notification of an answer. Legal basis: consent (Art. 6(1)(a) GDPR). Email retention: 90 days after notification, 12 months maximum without an answer. To exercise your rights, see the GDPR section of our Terms and Conditions.