2

I am trying to read the output of "codesign" dynamically, but the output is only printed to the screen and not to the file:

    codesign -dv MyApp.app > codesign.log

How can I get the output of codesign?

Cheers,

Mondoshivan
  • 23
  • 1
  • 5
  • Check this post to redirect both stdout and stderr http://stackoverflow.com/questions/876239/bash-redirect-and-append-both-stdout-and-stderr – Gurubaran Aug 27 '14 at 00:05

1 Answers1

3

If you redirect both stdout and stderr by using the '&' character, it will send the output to the file

codesign -dv /Applications/Calculator.app &> codesign.log

TheDarkKnight
  • 27,181
  • 6
  • 55
  • 85