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