转载来自: http://www.cnblogs.com/showker/archive/2013/09/01/3294279.html http://www.binarytides.com/php-manage-multiple-cronjobs-with-a-single-crontab-entry/ In many php applications there are multiple tasks that need to be run via cron at different time
http://www.binarytides.com/php-manage-multiple-cronjobs-with-a-single-crontab-entry/ In many php applications there are multiple tasks that need to be run via cron at different times. In a typical application you may be doing the following tasks via
一.crontab调度 对于linux 自带crontab而言, xxx.sh的一般编写格式以#!/bin/bash 解释器开头,可在脚本中加入: date 但是,shell脚本执行 需要 x权限,执行的方式如下: ./xxx.sh sh ./xxx.sh 其中,后缀.sh 第一行#!/bin/bash 没有,需要使用sh命令去执行 1.crontab简单调度 [root@localhost ~]# crontab -e no crontab for root - using an e