date取得分钟数
$(()) 运算
#execute every 5 minutes
a=`date +%M`
b=$(( $a % 5 ))
if [ $b = 0 ]
then
echo "execute it"
else
echo "Not execute"
fi
转载于:https://blog.51cto.com/liucb/1842342
date取得分钟数
$(()) 运算
#execute every 5 minutes
a=`date +%M`
b=$(( $a % 5 ))
if [ $b = 0 ]
then
echo "execute it"
else
echo "Not execute"
fi
转载于:https://blog.51cto.com/liucb/1842342