全部博文(409)
发布时间:2015-05-20 18:42:42
[yangkai@localhost myshell]$ cat test_dh.exp #!/bin/bash/expect -fset ip 192.168.23.128set password 123456set timeout 3spawn ssh root@$ipexpect {"passw" {send "$password\r";exp_continue}#"de password: " {send "$password\r";exp_continue}"root@" {send "df -h /opt\r";exp_continue}}int.........【阅读全文】
发布时间:2015-03-30 20:23:20
[root@yang testshell]# cat ftptest.sh #bin/bashhost=localhost;username=ykftp;password=yk123;ddir=/file1/file2/#ftp -i -v -n ${host}<<okftptestfile(){ftp -i -n ${host}<<okuse ${username} ${password}.........【阅读全文】