How to execute tasks on linux on the hour and on the hour-php Tutorial

Source: Internet
Author: User
How does one implement the entire and half-point execution tasks in linux? How does crontab-e in linux set the whole and half-point execution tasks?
It is to execute a task every 30 minutes at the hour, such as and.


Reply to discussion (solution)

*/30 *** tasks

*/30 *** tasks


Great God, if it is now 09:15, how can I execute it once at half past nine and execute it again every 30 minutes to the hour after?

*/30 * curl http://www.xxx.com/controller /region name


This is to execute a request for this address every 30 minutes, that is, the implementation method.
Right?

Don't worry about that 15 minutes.

Then you can schedule the task.
Or write cron. when the date is reached, it can be enabled on time.

The simplest and most crude method is to run the timer once a minute, and then the script determines whether the time is executed.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.