shell将脚本输出结果记录到日志文件的实现

作者:袖梨 2022-06-30

使用tee命令:

sh portal/main.sh |tee log.txt

 

获取脚本父类路径

cmddir="`dirname $0`"

相关文章

精彩推荐