将LFTP结果输出到变量
这个问题在这里已经有了答案:
使用Command Substitution
将Command Substitution
的输出存储在变量中:
output=`lftp -c 'open -e "mirror /path/to/remote /path/to/local/" ftp://username:password@ftp.domain.com:21'`
echo "Test: ${output}"
链接地址: http://www.djcxy.com/p/57215.html