监视模块启动的SHELL
来源:互联网 发布:ae cc mac 破解版 编辑:程序博客网 时间:2024/06/07 02:51
以前是用进程来做的,现在用SHELL来做,目的:把引导文件离要启动的模块实时监测已启动的进程里有没有
如果没有,则启动
while sleep 10
do
grep /& /prog/init/run.sh|awk -F"#./" '{print $1}'|grep /&|awk -F"&" '{print $1}'>runmodule
aa=`grep -c ./ runmodule`
x=1
while [ "$x" -le "$aa" ]
do
cmpmodule=`sed -n $x"p" runmodule`
sed -n $x"p" runmodule>proc_wnc
grep wnc proc_wnc
if [ $? -ne 0 ];then
ps|grep $cmpmodule |grep -v grep>shtmp
else
bb=`awk -F" " '{ print $2}' proc_wnc`
ps |grep ./wnc/ $bb|grep -v grep>shtmp
fi
if [ $? -ne 0 ];then
$cmpmodule&
fi
x=$(($x+1))
done
done
- 监视模块启动的SHELL
- Activity监视应用程序的启动
- Shell写的一个进程监视脚本
- 监视电脑启动过程的行为
- Android 编程下监视应用程序的启动
- Android 编程下监视应用程序的启动
- 监视磁盘空间shell脚本
- shell脚本监视进程
- shell的应用程序:监视系统用户(详解)
- Shell脚本之监视指定进程的运行状态
- WMI监视进程启动
- shell的启动过程
- shell-iostat监视简易脚本
- shell监视进程是否存在
- linux shell进程监视脚本
- Linux shell编程01--shell的启动
- APache的PHP模块启动
- seajs模块的加载启动
- String.Format 和builder.AppendFormat实现代码
- DooRs 行业解决方案
- 创业第2天,办公室租好了
- 基于词性的特征提取方法
- VC++中调用word进行word表格的填写
- 监视模块启动的SHELL
- UML建模的要点总结
- Linux SHELL if 命令参数说明
- insert append需要注意的一个小问题
- DNA计算机:数学与生命的交融
- 请问如何让Sql2005用access的数据库
- 好用的画饼图控件
- 上溯造型
- AX启动过程及Session管理