shell 里[[与[的不同
NEW_COUNT=`grep -i "message window full" /ceno/product/masc/log/2009-11-25/opgw.log |wc -l` if [[ $NEW_COUNT -gt $OLD_COUNT ]];thenecho `date "+%Y-%m-%d %H:%m:%S"`" => $NEW_COUNT"
echo $NEW_COUNT > /tmp/old_count.log
$JAVA_CMD -classpath $CP:$CLASSPATH naisa.simulator.smg.SmsSimulator $SIM_HOME/smgsim.conf $* >>/tmp/bb.txt
fi
页:
[1]