Test for Batch Mode


I have a script that I sometime run interactively and in this case it
has many print statemens and I like to see them so I know what the
script is up to. However when I run this in batch mode (root -b) I
think the IO may be slowing the script down on our pc farm. Is there a
way to test in a script to see which way root was called ( perhaps
something similar to CINT).


P.S. If not is there a possibility to add such a feature?

Loren A. Linden Levy
481 Loomis, Department of Physics
University of Illinois at Urbana-Champaign
1110 W. Green St., Urbana, IL 61801-3080
Tel: 217-244-7995 (NPL) / +049 040 8998 4789 (DESY)
Fax: 217-333-1215 (NPL) / +049 040 8998 4034 (DESY)
Cell: 217-369-6580 (U.S.) / +049 (0)151 5496 1831 (Germany)
Email: lindenle@uiuc.edu
url: w3.physics.uiuc.edu/~lindenle/

This email has been cryptographically signed.
Search for “lindenle” at pgp.mit.edu
to obtain my public key which can be used
to verify the authenticity of this message.


Did you try to use “gROOT->IsBatch()” ?


Thanks that is exactly what i needed. Sorry If I missed it in the documentation.