#!/usr/bin/expect spawn ssh web@x.x.x.x "/data/t/busi/q/aa.sh" expect "assword:" send "xxxxxxx\r" interact