Detailed explanation of the Crontab command for scheduled tasks
Preface
Crontab is Unix and Linux commands used to set periodic execution. It is a very common technology on the Internet. Many tasks are set to run cyclically in crontab. If crontab is
For details about how to use crontab in Ubuntu, ubuntucrontab
If a php script needs to be run at a specified time, such as regular website data statistics, automatic Database Backup tasks, and timed email sending.
If we do not use Cron to execute
Usage of crontab in Ubuntu
If a php script needs to be run at a specified time, such as regular website data statistics, automatic Database Backup tasks, and timed email sending.
If we do not use Cron to execute php scripts, we may use the php
Crontab usage details. Use crontab to regularly execute php code, for example, once every 10 minutes: 10 ***** wget-q -- sqider ******* 1. using PHP in Crontab to execute scripts is like calling Crontab in crontab to regularly execute php code, run
Use Crontab to execute PHP code at regular intervals, with an example of every 10 minutes:
/10 * * * * wget-q--sqider http://******
first, use PHP to execute script in crontabJust like calling a normal shell script in crontab (specific crontab
This article provides a detailed analysis of the use of crontab. For more information about how to use crontab to regularly execute php code, for example, once every 10 minutes:
/10 ***** wget-q -- sqider http ://******
1. use PHP to execute
This article provides a detailed analysis of the use of crontab. For more information about how to use crontab to regularly execute php code, for example, once every 10 minutes:
/10 ***** wget-q -- sqider http ://******
1. use PHP to execute
Allow crontab to automatically schedule rows of PHP
To use the crontab auto-dynamic PHP program, you can do this:
Method 11. Add the following in the first line of the PHP program:
#! /Usr/local/PHP/bin/PHP-Q
For example:
Plain textPHP:
#!
Use Crontab to execute PHP code at timed intervals, for example, every 10 minutes:
/10 * * * * wget-q--sqider http://******
First, use PHP to execute scripts in crontabJust like calling a normal shell script in crontab (specifically crontab usage),
Use Crontab to execute PHP code at regular intervals, with an example of every 10 minutes:
/10 * * * * wget-q--sqider http://******
First, use PHP to execute script in crontab
Just like calling a normal shell script in crontab (specific crontab
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.