如何設置定時工作 How to setup a cron job in cPanel
1) 點擊時鐘守護作業圖示 Click the Cron Jobs icon
2) 輸入電郵地址於每次運行排程工作時將該結果電郵到此。
Enter the email address where you want the cron job results sent after each time it runs
現在您需要定義何時及如何運行您的排程工作。
Now you have to define exactly when and how often you want the cron job to run
使用其中的預設值或普通設置較為簡單
This is made easier by using one of the pre-defined or common settings
請注意選擇普通設置,所有欄位將自動填寫。這亦可以幫助你每個欄位的用途。
Notice that by choosing a common setting, all fields are filled in automatically. This also helps you understand what each field means
3) 選擇每一個星期
Let's choose Once a week
4) 然後輸入您想運行的程式的命令,包括該路徑(從root)
Next, enter the command of the script you want to run, including the path (from root)
5) 當準備完成,點擊添加新計時程序作業
When ready, click Add New Cron Job
您可於圖下顯示的位置查看排程工作
The cron job has been set as you can see here
您可以新增額外排程工作、更改或刪除。
You can create additional cron jobs, and edit or delete existing ones