摘要: 一、我们先看看编写的shell脚本的内容,该shell的作用主要是实现监控某个程序崩溃之后就自动重启该进程。 #!/bin/bash while true do procnum=` ps -ef|grep "test"|grep -v grep|wc -l` if [ $procnum -eq 0  阅读全文
posted @ 2016-10-31 14:55 知子 阅读(12839) 评论(0) 推荐(1) 编辑