In centos-linux, what is the difference between executing the. sh file and the. php file?

Source: Internet
Author: User
As shown in the preceding figure, the crontab of the project is executed. sh file and then in. sh and find the corresponding php file again. it seems redundant. Is that true? it is impossible to have a problem similar to performance impact. for example, you can see that a project is executed in crontab. sh file and then in. it seems a bit redundant to find the corresponding php file in sh. Is that true?
It's impossible to have a problem that affects performance.

Reply content:

As shown in the following figure, the. sh file is executed in the crontab of a project, and then the corresponding php file is searched in. sh. does it seem redundant?
It's impossible to have a problem that affects performance.

There are two things at all. sh is a shell command.
. Php is a php file

If you execute php files in shell commands, it is better to use php-f xxx. php.
If you need to judge. Assign a value. Loop .. Of course, you have to use shell to execute it.

One. sh file can execute multiple php files according to the function to facilitate maintenance and management.

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.