cronta01.sh(2018-06-11)情况:
~~~
#!/bin/bash
step=1
time2interval=2
for (( i=0;i<60;i=(i+step) )); do
yushu02=$[$i%3] #$time2interval
yushu01=$[$i%3]
if [ 0 == $yushu02 ];then
$(php '/tmp/tolo2g.php')
fi
if [ 1 -eq $yushu01 ];then
$(php '/tmp/tolo1g.php')
fi
$(php '/tmp/tolog.php')
sleep $step
done
exit 0
~~~
* 最后千万别忘:
chmod 777 cronta01.sh