How can I in perl make
system("xcodebuild");
only relay stderr, and not stdout. (xcodebuild has an enormous amount of verbosity that I want to get rid of, but when something goes wrong, I still want to know what it was)
How can I in perl make
system("xcodebuild");
only relay stderr, and not stdout. (xcodebuild has an enormous amount of verbosity that I want to get rid of, but when something goes wrong, I still want to know what it was)
Redirect the standard output to /dev/null
:
system("xcodebuild >/dev/null") == 0
or warn "$0: xcodebuild exited " . ($? >> 8) . "\n";