#!/bin/bash step=2 #间隔的秒数,不能大于60 for (( i = 0; i < 60; i=(i+step) )); do /www/wwwroot/wwwroot/cxgyc/yii script-while-order sleep $step done exit 0