從我的腳本輸出中,我想捕獲所有帶有錯誤消息的日誌數據,並將它們全部重定向到日誌 ... #!/bin/bash exec 3>&1 4>&2 trap 'exec 2>&4 1>&3' 0 1 2 3 exec 1>log.out ...
確定! 回上一頁