有一批数据文件,加密的 rar ,我想批量解压该怎么写脚本
unrar x 数据.rar ./解压数据
expect{
"Enter password (will not be echoed) for abc.csv.gz:" { send "password" } "yes/no" { send "y\r"; exp_continue} }
这样写只执行第一句话,还是要手动输入密码? 所以请问,应该怎么写才可以执行 expect 语句