50%の確率でジョブを走らせる


#50%の確率で当ジョブを走らせる
num=`expr $RANDOM % 10`
if [ $num -le 4 ]
then
logger "job Start...50%"
else
logger "Job Cancel...50%"
exit 0
fi