首页 > 代码库 > spawn命令和expect

spawn命令和expect

#!/usr/bin/expectset timeout 30spawn ssh fangkui@172.100.101.150expect {    "fangkui@172.100.101.150‘s password:" {send "652289237\r"}}interact