#!/opt/ubs/bin/expect spawn scp -r user @server:/tmp/webEar/* /app/webEar expect "password:" send "123456\r" interact