Linux下通过crontab及expect实现自动化处理 --亲测可用

#!/usr/bin/expect -f
spawn /home/scripts/bckup.sh
expect "Enter password: "  
send "WWQQIE\n"
expect eof
exit

以上这段脚本亲测可用 。

 

posted @ 2016-07-21 16:04  seasonzone  阅读(639)  评论(0编辑  收藏  举报