---
title: "Linux后台监控脚本"
author: "hareee"
date: "2010-02-08T11:44:28Z"
tags: []
categories: ["操作系统"]
slug: "linux"
draft: false
lastmod: "2010-02-08T11:44:28Z"
id: 591350
url: "https://hareee.iteye.com/blog/591350"
---

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