判断进程自动启动的脚本(error)
来源:互联网 发布:网络社交的利与弊作文 编辑:程序博客网 时间:2024/05/05 13:15
encash_thread_mon.sh
#!/bin/bash
a=`ps -elf|grep com.zhcw.h8.encashCenter.EncashThread |grep -v grep|wc -l`
echo $a
if [ $a -gt 0 ]
then
echo `date` "happy8 is running....">/tmp/log.txt
else
echo `date` "happy8 is start ...">/tmp/log.txt
ps -ax|grep com.zhcw.h8.encashCenter.EncashThread |awk '{print $1}'|xargs kill -9
cd /opt/oias/h8/scripts
nohup ./encash_thread.sh &
fi
****************************************************
1-59 * * * * cd /opt/oias/h8/scripts; ./delivery_center.sh
delivery_center_mon.sh
#!/bin/bash
a=`ps -elf|grep com.zhcw.h8.deliveryCenter.Control |grep -v grep|wc -l`
echo $a
if [ $a -gt 0 ]
then
echo `date` "happy8 is running....">/tmp/log.txt
else
echo `date` "happy8 is start ...">/tmp/log.txt
ps -ax|grep com.zhcw.h8.deliveryCenter.Control |awk '{print $1}'|xargs kill -9
cd /opt/oias/h8/scripts
nohup ./delivery_center.sh &
fi
- 判断进程自动启动的脚本(error)
- 进程自动启动脚本
- 自动监控进程并启动的shell脚本
- 判断进程存在的脚本
- Oracle的自动启动脚本
- linux下环境变量、启动脚本、进程判断设置
- shell脚本启动应用,自动获得pid删除进程应用
- python脚本监控进程,服务停止后自动启动
- Shell脚本实现进程的自动拉起
- Oracle 自动启动脚本的编写
- 安装JBoss的自动启动脚本
- Ubuntu启动自动运行脚本的方法
- 自动杀掉进程脚本
- Windbg 自动加载到启动的进程
- Windbg 自动加载到启动的进程
- 脚本自动判断关键字,符合的自动scp出去
- 自动启动数据库脚本
- MongoDB 自动启动脚本
- Redhat AS3上编译qt4.3.2,出现krb5.h找不到的问题
- 进制转换问题
- Linux设备驱动编程之异步通知
- boiz的TSQL备忘录(一)--LIKE子句和通配符
- sql多列合并的一个新方法
- 判断进程自动启动的脚本(error)
- 亲密接触Discuz!NT之架构篇:优良架构 方便网站整合与二次开发
- hibernate problems
- SQL Server中易混淆的数据类型
- bmp图片格式
- JS 去空格函数
- Time to say good-bye.
- Linux设备驱动编程之中断处理
- VSS 2005 配置