![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
Allen_Zhong
这个作者很懒,什么都没留下…
展开
-
verify who reload the lab with shell
#!/bin/kshif [[ "${1}" = "" ]]then print "\nEnter labname: \c" read LABelse LAB="${1}"fiif [[ ! -f /home/fsbu/logs/reloadlog-${LAB} ]]then print "\nInvalid labname原创 2015-06-30 09:41:03 · 382 阅读 · 0 评论 -
tools save the logs during su procedure
"ts" 5 lines, 235 characters #!/bin/bash#logsaver tat07 2 apply-comit-backout-bld1 R2711.01.38#logsaver tat04 2 apply-reapply-commit-so-bld3 R2860.01.26logsaver qisc2 2 apply-commit-backout-b原创 2015-06-30 09:37:16 · 691 阅读 · 0 评论 -
compute the su procedure time with python
#!/usr/bin/python2.6import re,datetimefile_name='sim.log'file=open(file_name,'r')acnum=[];time_res=[];lnum=0def trans_time(time): t1=datetime.datetime.strptime(time,'%y/%m/%d %H:%M:%S')原创 2015-06-30 09:39:26 · 650 阅读 · 0 评论