摘要: 今天做了个数据库的备份脚本,顺便系统得学习一下Linux下定时执行脚本的设置。Linux下的定时执行主要是使用crontab文件中加入定制计划来执行,设置比Windows稍微复杂一些(因为没有图形界面嘛),但是也不是非常复杂,基本上用过一遍就能记住了,关键是要记住/var/spool/cron这个... 阅读全文
posted @ 2012-03-20 14:59 Home of Jason Liu 阅读(5643) 评论(0) 推荐(0) 编辑
摘要: 1、用root权限登陆2、 crontab -u lsbi -e3、加入要启动的命令,如40 4 18 * * /oracle_backup/bin/scott_select.sh4、重新启动service crond restart5、OK特别注意:1、cmd要运行的程序,程序被送入sh执行,这个... 阅读全文
posted @ 2012-03-20 14:58 Home of Jason Liu 阅读(972) 评论(0) 推荐(0) 编辑
摘要: package org.davidfang.mail;import java.io.BufferedInputStream;import java.io.BufferedOutputStream;import java.io.File;import java.io.FileNotFoundExc... 阅读全文
posted @ 2012-03-20 14:57 Home of Jason Liu 阅读(6812) 评论(4) 推荐(0) 编辑
摘要: 由于毕业设计(入侵检测)的需要,这两天仔细研究了BM模式匹配算法,稍有心得,特此记下。 首先,先简单说明一下有关BM算法的一些基本概念。 BM算法是一种精确字符串匹配算法(区别于模糊匹配)。 BM算法采用从右向左比较的方法,同时应用到了两种启发式规则,即坏字符规则和好后缀规则,来决定向右... 阅读全文
posted @ 2012-03-20 14:30 Home of Jason Liu 阅读(638) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std;typedef struct Node{ int data; Node *lchild,*rchild;}btree;//创建二叉树btree *create(int a[],int n, int ... 阅读全文
posted @ 2012-03-20 13:31 Home of Jason Liu 阅读(331) 评论(0) 推荐(1) 编辑