---
title: "Linux后台监控脚本"
author: "bd2007"
date: "2011-08-17T10:34:15Z"
tags: []
categories: ["操作系统"]
slug: "linux"
draft: false
lastmod: "2011-08-17T10:34:15Z"
id: 1151075
url: "https://bd2007.iteye.com/blog/1151075"
---

#!/bin/sh<br>while true; do<br> ss7pid=`ps -ef|grep ss7d|awk '/shcti/{print $2}'`<br> if test -z $ss7pid;then<br>  /usr/local/lib/shcti/ver4.7.17/ss7/ss7d &amp;<br>  echo `date +'%y-%m-%d %t'` find  stop, start... >> ss7monitor.log<br> fi<br> sleep 5<br>done