Questions about timing php file execution in linux

Source: Internet
Author: User
Scheduled php file execution in linux! In linux, I want to run the following three files in sequence:. php & nbsp; B. php & nbsp; c. php, for example, run. php will run B after two minutes, whether or not it is finished. php, then c. ph: scheduled php file execution in linux!
In linux, I want to regularly execute three files:. php B. php c. php, for example, run. php will run B after two minutes, whether or not it is finished. php, then c. php. how can this problem be solved? Do you want to write sh? which man told me!

Is this correct? :
Php. sh

#! /Bin/bash
/Usr/bin/php a. php
/Usr/bin/php B. php
/Usr/bin/php c. php

# Crontab-e

* *** Sh php. sh
------ Solution --------------------
Reference:
Php. sh

#! /Bin/bash
/Usr/bin/php a. php
Sleep 2
/Usr/bin/php B. php
Sleep 2
/Usr/bin/php c. php


*/5 * php. sh


Sleep 1 m # two minutes

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.