10年工作经验,专研网站运维。
全部博文(454)
发布时间:2013-04-17 22:03:21
#!/bin/bashif[ ! -d /tmp/aaa ];thenmkdir -p /tmp/aaaelseecho "This directry is exist"fi......【阅读全文】
发布时间:2013-04-16 15:42:54
文件排序去重后放入新的文件中[root@ebs36 ~]# cat testa | sort -u > aaa.txt......【阅读全文】
发布时间:2013-04-14 18:52:13
#!/bin/bashecho "Please enter a user"read ab=$(whoami)if test $a = $bthen echo "The user is running"else echo "The user is not running"fi......【阅读全文】
发布时间:2013-04-11 10:16:14
#!/bin/bashpacket_lost_status=`ping -i 0.01 -c 20 192.168.10.10 | grep "packet loss" | awk '{{sub(/%/,"",$6)}print $6}'`if [ $packet_lost_status -gt "95" ];then echo "`date` restart eth0" >>restart_network.log &nbs.........【阅读全文】