#!/usr/bin/expect
spawn scp -P 33312 /home/hanlei/pxe/pxe7.sh hanlei@192.168.3.101:/home/hanlei/
expect {
"yes/no" {exp_send "yes
";exp_continue}
"*password" {exp_send "han.com
"}
}
expect eof
#!/usr/bin/expect
spawn scp -P 33312 /home/hanlei/pxe/pxe7.sh hanlei@192.168.3.101:/home/hanlei/
expect {
"yes/no" {exp_send "yes
";exp_continue}
"*password" {exp_send "han.com
"}
}
expect eof