执行shell脚本,并把执行结果存入文件

直接使用此命令即可

 1 sh -x update.sh 2>&1 | tee message.log 

posted @ 2020-11-11 15:37  你的小可爱吖  阅读(2129)  评论(0编辑  收藏  举报