shell
ahyswang
热爱编程,更热爱生活
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
linux crond 服务简单使用
* 1、cron服务 * /etc/init.d/crond {start|stop|status|restart|condrestart|try-restart|reload|force-reload} * 2、开机自启动 * 在 /etc/rc.d/rc.local 脚本中加入 /sbin/service crond start * 3、用户级任务和系统级任务 * /var原创 2014-10-12 10:57:43 · 321 阅读 · 0 评论 -
进程监控脚本
#!/bin/sh my_ip=`/sbin/ifconfig eth1 | grep 'inet addr' | awk '{print substr($2, index($2, ":")+1)}'` recv="" msg="not_existing, restart ..." MONITOR_LOG="monitor.log" #monitor procname scriptname原创 2014-10-11 22:34:45 · 774 阅读 · 0 评论
分享