查看445端口占用情况
port=445 pid=netstat -nltp | grep -E ":{3}$port" | sed -r 's/.*([0-9]{4,5}/).*/1/g' | tr -d '/' test -n $pid && echo "port invalid" date "+20%y/%m/%d %H:%M:%S"