```shell #!/bin/bash nc -z -w2 www.baidu.com 80 | grep -oP "succeeded" > /dev/null && [ $? == 0 ] && echo "bignat_ok:1" || echo "bignat_fail:1" ```