0

In my case, cmd1 handle multi-line(seems like awk or sed).

But the reliability of cmd1 is not good (90% success rate maybe, that is to say, 10 lines are not dealed within 100 lines input in a execution), so I wonder if there is way to caputer error message into log file(instead of '/dev/null' below) with additional timestamp?

cmd1 2>>/dev/null | cmd2 | cmd3 > stdout.log

thanks a lot!

Antonio Petricca
  • 8,891
  • 5
  • 36
  • 74
Cans404
  • 3
  • 1

0 Answers0