信仰

猛图www.omeng.org

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2011年7月27日

摘要: 在chinaunix上问了很久没找到解决方案自己动手丰衣足食脚本如下#!/bin/bashc=$(ps -ef|grep python |grep -v "grep"|wc -l)if [ $c -lt 1 ]then python /home/spider/spider.py &fi保存文件名为 xxx.sh运行命令 :crontab -e在 nano里面 添加*/分钟 * * * * sh 文件的路径ctrl+xY回车/etc/init.d/cron restart 阅读全文
posted @ 2011-07-27 16:34 信仰123 阅读(211) 评论(0) 推荐(0) 编辑

猛图