!#/bin/bash
ntp_num=$[`ps -ef|grep ntp|wc -l`-1]
if [ $ntp_num == 1 ];then
echo 0
else
echo $ntp_num
fi
转载于:https://www.cnblogs.com/0916m/p/11568807.html
!#/bin/bash
ntp_num=$[`ps -ef|grep ntp|wc -l`-1]
if [ $ntp_num == 1 ];then
echo 0
else
echo $ntp_num
fi
转载于:https://www.cnblogs.com/0916m/p/11568807.html