#!/bin/bash
/usr/local/bin/varnishstat-1>/tmp/varnish.$$
awk‘{
printf("%s:%s",$1,$2)
}‘/tmp/varnish.$$
rm-rf/tmp/varnish.$$Usage:Asrootsetupacronjob:*****/usr/local/varnish/bin/varnishstat-1>/tmp/varnishstatAddanuserparametertozabbix:UserParameter=..
分类:
其他好文 时间:
2014-10-01 01:30:20
阅读次数:
245
#!/bin/bash
DBUSER=‘root‘
DBPASS=‘‘
DBHOST=‘localhost‘
ZBX_VER=‘2.0.1‘
functioncheckReturn{
if[$1-ne0];then
echo"fail:$2"
echo"$3"
exit
else
echo"pass:$2"
fi
sleep3
}
cat<<"eof"
===RUNATYOUROWNRISK===
DONOTRUNONEXISTINGINSTALLATIONS,YOU*WILL*LOS..
分类:
其他好文 时间:
2014-10-01 00:58:00
阅读次数:
363
#!/bin/bash
#./zabbixagent.sh172.16.103.16172.16.103.134
#$1masteraddress,$2local_listen_ip
groupaddzabbix&&useraddzabbix-gzabbix
cat>>/etc/services<<EOF
zabbix-agent10050/tcpZabbixAgent
zabbix-agent10050/udpZabbixAgent
zabbix-trapper1..
分类:
其他好文 时间:
2014-10-01 00:41:30
阅读次数:
209
刚开始报error:devices not found重新安装adb 驱动。解决方法:adb kill-serveradb start-serveradb remount再使用adb devices和adb shell就可以使用android adb功能了。转自:http://blog.csdn.n...
分类:
数据库 时间:
2014-10-01 00:18:10
阅读次数:
523
//链表
#include
#include
using namespace std;
typedef struct LNode
{
int data;
struct LNode *next;
}LNode,*LinkList;
int InitList_L(LinkList &L)
{
L=new LNode;
L->next=NULL;
return 1;
}
void Inpu...
分类:
其他好文 时间:
2014-10-01 00:16:00
阅读次数:
242
1、人类如何与计算机"沟通"?翻译官:编译器、解释器;编程语言:机器语言、汇编语言、高级语言静态语言:编译型语言强类型语言:变量在使用之前,需要声明定义,甚至需要初始化事先转换成可执行格式C、C++、Java、C#动态语言:解释型语言弱类型语言:变量在使用之前,不需要声..
分类:
其他好文 时间:
2014-09-30 23:59:21
阅读次数:
259
$# 是传给脚本的参数个数$0 是脚本本身的名字$1 是传递给该shell脚本的第一个参数$2 是传递给该shell脚本的第二个参数$@ 是传给脚本的所有参数的列表$* 是以一个单字符串显示所有向脚本传递的参数,与位置变量不同,参数可超过9个$$ 是脚本运行的当前进程ID号$? 是显示最后命令的退出...
分类:
系统相关 时间:
2014-09-30 23:19:30
阅读次数:
268
Vbird Linux:Vim Learning:http://linux.vbird.org/linux_basic/0310vi.phpBash Shell:http://linux.vbird.org/linux_basic/0320bash.phpKey words of reminder:...
分类:
其他好文 时间:
2014-09-30 21:17:00
阅读次数:
172
方法一:#include#includeint main(int argc ,char *argv[]){ union name{ int i; char a; }c; c.i=0x04030201; printf("%d\n",c.a);//输...
分类:
其他好文 时间:
2014-09-30 20:25:50
阅读次数:
195
月份出错可能影响shell脚本运行,还是改一下。
1
zxw@hostUbuntu1:~$ ifconfig
eth0 Link encap:浠ュお缃 纭欢鍦板潃 00:0c:29:fb:c0:4c
inet 鍦板潃: 骞挎挱: 鎺╃爜:255.255.255.0
inet6 鍦板潃: fe80::20c:29ff:fefb...
分类:
其他好文 时间:
2014-09-30 18:36:19
阅读次数:
271