Chinaunix首页 | 论坛 | 博客
  • 博客访问: 493059
  • 博文数量: 401
  • 博客积分: 244
  • 博客等级: 入伍新兵
  • 技术积分: 2215
  • 用 户 组: 普通用户
  • 注册时间: 2012-08-04 10:02
文章分类

全部博文(401)

文章存档

2013年(37)

2012年(364)

分类:

2012-08-14 18:21:20

#/bin/sh
#get alert of everyday
#then name of file is everyday_alert.sh
dir="/oracle/admin/bbdz/bdump"
 
num=$(cat -n ${dir}/alert_bbdz.log | grep "`date|cut -c 1-10`"|head -n 1 |awk '{print $1}')
 
 
tail +${num} ${dir}/alert_bbdz.log >>/oracle/admin/bbdz/alert/alert_bbdz_`date + '%Y%m%d'`.log
 
crontab -e
58 23 * * * sh /oracle/script/every_alert.sh
阅读(354) | 评论(0) | 转发(0) |
0

上一篇:aix6.1下安装ssh

下一篇:2012.8.12

给主人留下些什么吧!~~