作为初学者,要想取得进步,成为高手,首先应该了解自己的不足之处.
全部博文(117)
发布时间:2011-01-20 14:47:41
1·建表语句如下:CREATE TABLE `bak_stat` ( `id` INT(10) NOT NULL AUTO_INCREMENT, `date_ymd` DATE NULL DEFAULT NULL, `s_time` TIME NULL DEFAULT '00:00:00', `e_time` TIME NULL DEFAULT '00:00:00', `mod_name` CHAR(20) NULL DEFAULT NULL, `files` BIGINT(20) NULL DEFAULT NULL,.........【阅读全文】
发布时间:2011-01-20 14:45:39
#!/usr/bin/python#-*- coding: UTF-8 -*-import MySQLdb,cgi,time,datetime today = datetime.datetime.now()today_0 = today.strftime('%Y-%m-%d')today_1 = (today + datetime.timedelta(days = -1)).strftime('%Y-%m-%d')today_2 = (today + datetime.timedelta(days = -2)).strftim.........【阅读全文】
发布时间:2011-01-20 14:43:05
#!/usr/bin/python'''The rsync_server config'''import os,stat,sys,timenow=time.strftime('%Y%m%d%H%M')cfgrsyncd='''#rsyncd#uid = rootgid = rootuse chroot = nomax connections = 5lock file = /var/log/rsync/rsyncd.locklog file = /var/log/rsync/rsyncd.logpid file = /var/log/rsync/rsyncd.........【阅读全文】
发布时间:2011-01-20 14:39:41
#!/usr/bin/pythonimport os,sys,time,re,MySQLdbnow=time.strftime('%Y%m%d')passwd='/tmp/.passwd'log22='/tmp/stats_%s.csv' % (now)dict_mon={'mytest1':('ning@127.0.0.1::','/tmp/test2010'),#'mytest1':('ning@127.0.0.1','/tmp/test2010'),'mytest4':('ning@127.0.0.1::','/tmp/test2010'),'mytest2.........【阅读全文】
发布时间:2011-01-20 14:27:54
#!/usr/bin/pythonimport os,sys,time,re,threading,MySQLdbnow=time.strftime('%Y%m%d')log_02='/tmp/tongbu_stats_%s.csv' % (now)dict_cmd={'test1':'/usr/bin/rsync -tzrlp --stats /tmp/tes.........【阅读全文】