摘要: Bash循环定义无限while循环 (2018-08-17 14:00:26) 转载▼http://blog.sina.com.cn/s/blog_6436b8ec0102xfyb.html 定义一个无限while循环可以使用如下3种命令:true命令 :不做任何事,表示成功,总是返回退出状态码0。 阅读全文
posted @ 2019-11-20 11:27 klandehu 阅读(707) 评论(0) 推荐(0)
摘要: port="6379 3306 27017 4505 4506 24007 24008 49152" #while true #do sleep 3 for i in $port do isexist=`netstat -lntup|grep 3306|head -n 1|awk '{print $ 阅读全文
posted @ 2019-11-20 11:00 klandehu 阅读(3266) 评论(0) 推荐(0)