如何通过php检查cron作业是否正在运行?

时间:2016-07-27 06:52:25

标签: php cron

#Mins  Hours  Days   Months  Day of the week
10     3      1      1       *       /bin/echo "I don't really like cron"
30     16     *      1,2     *       /bin/echo "I like cron a little"
*      *      *      1-12/2  *       /bin/echo "I really like cron"

1 个答案:

答案 0 :(得分:0)

您可以将输出放入文件中。

*      *      *      1-12/2  *       /bin/echo "I really like cron" >> /var/logs/cron_output.txt