Suppresing root output

I’d like to write output of a root script, like:

root -l -b -q something.C >out

however, this way it always prints “Processing something.C…”. Is there any way to make it print only what I want to print?

Hi,

is
root -l -b -q something.C >out 2>&1
closer to what you want?

Cheers, Axel.

No :slight_smile: I don’t want it to print “Processing…” message. Only couts, cerrs, printfs from my script, no other root messages…

Short of making sure your script is printing to a different file descriptor than the usual, there is no good way to suppress for sure all output. You can play with gErrorIgnoreLevel to suppress a large fraction of the out (Error, Warning, Info).

Cheers,
Philippe.