vim test.sh
#!/bin/bash
step=1 #间隔的秒数,不能大于60
for (( i = 0; i < 60; i=(i+step) )); do
$(/work/software/php/bin/php '/work/www/live/test.php')
sleep $step
done
exit 0
vim test.sh
#!/bin/bash
step=1 #间隔的秒数,不能大于60
for (( i = 0; i < 60; i=(i+step) )); do
$(/work/software/php/bin/php '/work/www/live/test.php')
sleep $step
done
exit 0
已有 0 条评论