摘要: 2015/05/22 11:10:42 [error] 25164#0: *24170881 upstream sent too big header while reading response header from upstream, client: 58.247.43.226, server... 阅读全文
posted @ 2015-05-22 11:18 zenghui940 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1,下面有这个例子vi a.txt1 2 3vi a.shecho $1 $2 $3vi c.shaa=`cat a.txt`./a.sh $aash c.sh 1 2 3注意:红色$aa没有加双引号,如果把$aa加上双引号那么$aa就会是一个整体了,所以在这里我们不加双引号,因为默认IFS是以空格... 阅读全文
posted @ 2015-05-22 08:13 zenghui940 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 1, $*与$@区别cat a.sh#!/bin/bashfor i in $* #这里换成$@也是一样的结果doecho $idonesh a.sh 1 '2 3'123vi a.shfor i in "$*"...sh a.sh 1 '2 3'1 2 3vi a.shfor i in "$@".... 阅读全文
posted @ 2015-05-22 07:59 zenghui940 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1 [root@zenghui expect]# cat ssh_dsa.exp 2 #!/usr/bin/expect 3 set ip [lindex $argv 0] 4 set pass [lindex $argv 1] 5 set port [lindex $argv 2] 6 set ... 阅读全文
posted @ 2015-05-22 07:47 zenghui940 阅读(765) 评论(0) 推荐(0) 编辑