- 博客(5)
- 资源 (21)
- 收藏
- 关注
原创 [Postfix]队列监控告警,发送告警邮件
#设置监控的最大队列数,当postfix队列数超过设置警戒值自动发送告警邮件给相关运维管理人员 #!/bin/bash #队列目录 QUEUE_DIR_NAES="/incoming/ \ /active/ \ /bounce/ \ /defer/ \
2012-02-03 00:31:01 2662
原创 [Postfix]按照队列的错误信息删除postfix挤压队列工具
#!/usr/bin/perl -w use strict; my $LISTQ = "postqueue -p"; my $POSTSUPER = "postsuper -d"; my $FILE="outfile"; my $info = ""; my $i; if ( @ARGV != 1 ) { die "Usage: $0 [\"error info\"] \n";
2012-02-03 00:23:00 622
原创 远程清空日志(有助于程序调试)
#!/usr/bin/expect set timeout 5 set password leadtone set file [open iplist r] set n 0 while { [ gets $file host ] >= 0 } { incr n spawn ssh $host expect { "(yes/no)?" { send
2012-02-03 00:15:20 631
原创 字符串长度
#include #include size_t strrlen(char *string) { int len = 0; while(*string++ != '\0') len++; return len; } int main(int agrc,char **argv) { char *scan; int len = 0; if(argv[1]
2012-02-03 00:05:39 608
转载 [c专家编程]字符查找
#include #include int strfind(char **string,char scan) { char *str; while((str = *string++) != NULL){ while(*str != '\0'){ if(*str++ == scan){ printf("str = %s
2012-02-02 23:58:44 676
Android反编译工具包(最新版2014-10-22)
2014-10-22
Cocos2d-x手机游戏开发与项目实践详解_随书代码
2014-07-22
Cocos2d-x 游戏中嵌入广告(DEMO)
2014-07-01
Android开发环境搭建完全版
2014-04-25
Linux命令大全(修改版)
2011-03-09
linux network 编程
2011-03-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人