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.