摘要:
1.安装expectyum install expect 2.编写脚本demo.exp:spawn /var/www/html/imagesDirBackup.shexpect "password:"send "ispass\r"3.这样,当shell脚本中出现了要求输入密码的时候,脚本就自动输入... 阅读全文
posted @ 2012-06-28 15:15
jianhong
阅读(142)
评论(0)
推荐(0)
浙公网安备 33010602011771号