0
#!/bin/bash
a= vmquery -b -pn Scratch |grep -i ACS |grep -iw hcart3|wc -l
if [ "$a" -lt 20 ] ; then
mailx -s "BSPRD267 Scratch Count" [email protected]
else
echo "Scratch count is $a"
fi
如下獲得誤差信息: -在shell腳本中獲取整數表達預期錯誤?
./scratch.sh:行3:[::整數表達預期