#!/usr/bin/expect -f
set timeout -1
spawn /usr/bin/scp -l 25000 /opt/IBMIHS/conf/httpd.conf
expect " password:"
send ""
expect "100%"
#send "sleep 5\n"
spawn /usr/bin/scp -l 25000 /opt/IBM/WebSphere/Plugins/config/ccnweb10/plugin-cfg.xml
expect " password:"
send ""
expect "100%"
#send "sleep 5\r"
expect eof
#ftp -i -v -n IP <#user ftpuser nluck357
#bin
#lcd /opt/IBMIHS/conf/
#cd ccnap9
#prompt
#mput httpd.conf
#lcd /opt/IBM/WebSphere/Plugins/config/ccnweb10/
#cd ccnap9
#prompt
#mput plugin-cfg.xml
#bye
#EOF
阅读(773) | 评论(0) | 转发(0) |