Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5332191
  • 博文数量: 1144
  • 博客积分: 11974
  • 博客等级: 上将
  • 技术积分: 12312
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-13 20:06
文章存档

2017年(2)

2016年(14)

2015年(10)

2014年(28)

2013年(23)

2012年(29)

2011年(53)

2010年(86)

2009年(83)

2008年(43)

2007年(153)

2006年(575)

2005年(45)

分类: LINUX

2007-03-29 14:04:35

#!/bin/sh
# You should probably run this hourly
MYSQLHOST="localhost"
MYSQLUSER="milter"
MYSQLPASS="milter"
MYSQLDB="relaydelay"
mysql -h $MYSQLHOST -u $MYSQLUSER -p$MYSQLPASS $MYSQLDB -e "delete FROM  relaytofrom WHERE origin_type = \"AUTO\" and ( unix_timestamp(  )- unix_timestamp( record_expires )  >0 )"
阅读(1968) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~