+ -
当前位置:首页 → 问答吧 → 求助用nohup运行expect脚本

求助用nohup运行expect脚本

时间:2010-03-23

来源:互联网

我写了个expect脚本:


set timeout 60

spawn /usr/bin/ssh user@host
expect {
"password:" {
send "password\r"
}

interact {
timeout 60 { send " "}
}

正常运行是没问题的,但我想用nohup运行在后台
nohup xx.sh &
就不成功了,请问该如何解决啊,谢谢!

作者: Fedora000   发布时间: 2010-03-23

没解决,用screen替代

作者: Fedora000   发布时间: 2010-03-28