摘要: #!/bin/bash# Filename: main.shusage(){ echo "scp file :./main.sh scp sourcefile destfile" echo "ssh exec: ./main.sh ssh command"}file=iplist.txt#password='fengmao'case $1 in "scp") for ip in `cat $file`; do ./scp.exp $ip $2 $3 done ;; "ssh") for ip in 阅读全文
posted @ 2013-11-28 14:34 silence.li 阅读(340) 评论(0) 推荐(0)