#!/bin/sh
#button
ps -fe|grep "button" |grep -v grep
if [ $? -ne 0 ]
then
echo "Create button process..."
button &
else
echo "button process has already running."
fi
验证一个进程是否起来,没有重启的shell脚本
猜你喜欢
转载自blog.csdn.net/csdnxmj/article/details/103024012
今日推荐
周排行