读好书,交益友
发布时间:2014-01-03 15:26:20
最近一直在写webmin的模块,发现webmin不好调试,只好使用syslog。use Sys::Syslog; # all except setlogsock()use Sys::Syslog qw( :DEFAULT setlogsock);my $remotehos.........【阅读全文】
发布时间:2014-01-02 11:16:23
删除一个ip地址my $strTemp = "";open(FILE,"/etc/steelport/round-robin.txt");while(<FILE>){ if(/192.168.9.196/) { .........【阅读全文】
发布时间:2013-12-11 16:51:59
perl语言使用CPAN安装模块# apt-get install libdatetime-perl libdbi-perl libdbd-mysql-perl \libclass-autouse-perl libmd5-perl libdigest-sha1-perl \libhtml-template-perl libimage-size-perl libmime-lite-perl \libmime-perl libcompress-zlib-perl libnet-dns-perl \liburi-perl libhtml-tagset-perl libhtm.........【阅读全文】
发布时间:2013-12-05 14:50:30
最近诸多不顺,做接口设计的绝对是c语言高手,居然想到二维字符数组做参数拷贝字符,一般只有c#程序员这么干。程序的目的,就是传递网卡的几个ip而已。定义二维字符数组 char ip[64][16]={0};定义函数static int ip_group(char (*ip)[16]){ char buf[16]; &n.........【阅读全文】
发布时间:2013-12-02 17:06:54
现在发现ubuntu下安装reids的python客户端,还是花点力气的首先安装easy_installwget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.pypython ez_setup.py --user出现 Running hiredis-0.1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-bl7wJL/hiredis-0.1.1/egg-dist-tmp-t2S1cZIn fi.........【阅读全文】