阅读背景:

验证一个进程是否起来,没有重启的shell脚本

来源:互联网 
#!/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#!/bin/sh

#button
ps -fe|grep "button



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: