Problem use crontab path

A big problem crontab tool is not support relative paths, will cause the file can not be found, adding cd command crontab script enabled, so that the working directory to the directory required to run the tool, you can

* Timing 0:00 perform daily tasks
  * 00  00 * * * cd / the Data / wwwroot / Blog && / usr / local / PHP7 / bin / PHP Artisan combined_integral

 

Guess you like

Origin www.cnblogs.com/niuben/p/12525957.html