发新话题
打印

linux批处理双重重定向

linux批处理双重重定向

错误信息既显示在屏幕上,又重定向到日志文件中
正常信息只记录到日志文件中
./doit.sh 2> >(tee -a /tmp/doit.log) > /tmp/doit.log

TOP

发新话题