/home/example/example.com/sub/script.php
- script script.php
runs with PHP settings for sub.example.com site./usr/local/php72/bin/php /home/example/example.com/sub/script.php
- script script.php
runs without using the PHP settings of the sub.example.com site.To add a cron task, do the following:
To specify when to start Cron tasks, a specific syntax is used for each value of the specified time. Syntax elements can be combined with each other by separating them with a comma, for example: */30, 1-10, 53
- the task will be launched at: 00, 01 and all numbers up to 10, 30, 53.
*/X
- launching the task at a time multiple of the specified in X. For example, an indication */20
for seconds and minutes will run the task in the following values: 00, 20, 40. 1,2,3
- listing the required values separated by commas.1-10
- an indication of the interval of the required values, in the example all numbers from 1 to 10 will be used.*
- any value.
All added tasks are displayed in the list:
The video shows the old form of adding a task, but the general principles of cron operation have remained unchanged.