如何将stdout重定向到2个文件,将命令和stderr重定向到2个文件,命令和控制台

时间:2014-10-16 10:55:15

标签: bash shell unix xcodebuild

我有这个现有的命令:

xcodebuild | tee "$MY_TEMP_FILE_PATH" >> "$MY_LOG_FILE_PATH"

stderr -> log file
          temp file
          normal console output

stdout -> log file 
          temp file
          (no normal console output)

我想添加OCUnit2JUnit。他们的例子有这个后缀:2>&1 | ocunit2junit。但是,我想与现有的重定向集成,因此映射将是:

stderr -> log file 
          temp file
          normal console output
          OCUnit2JUnit

stdout -> log file 
          temp file
          OCUnit2JUnit
          (no normal console output)

这可能吗?

0 个答案:

没有答案