mtools工具放在shell脚本通过crontab触发执行出现报错“this tool can't parse input from stdin”的解决办法

解决办法:

script -c “[executable string]”

比如:

07 09 * * * script -c "/app/scripts/mail-log.sh"

你可能感兴趣的:(mtools工具放在shell脚本通过crontab触发执行出现报错“this tool can't parse input from stdin”的解决办法)