Recently want to do some of the tasks scheduled to perform certain requests, because it is not Java, can not have the control of permanent memory, PHP do not know how to do Baidu Bae Cloud, find a long time finally I found
Https://cloud.baidu.com/doc/BAE/GUIGettingStarted.html#.E9.85.8D.E7.BD.AEapp.conf
A timed task is done through a shell command.
Configure Crond in the configuration of the project root app.conf to achieve the purpose of the scheduled task by executing the shell
crond: service:on crontab: "*/1 * * * * sh/home/bae/app/do.sh >>/home/bae/lo G/do_err.log" "*/1 * * * * *python/home/bae/app/test.py >>/home/bae/log/ Test.log"
-"*/1 * * * * * This is a set execution cycle
/home/bae/app/do.sh This file is where you put a. sh file in your project's root directory,
/home/bae/log/do_err.log "This is where the log output is executed.
How to use the Baidu Bae timer task