Re: [ROOT] Feature Request: No history flag

From: George Heintzelman (georgeh@sparrowhawk.chm.bnl.gov)
Date: Tue Jun 27 2000 - 18:19:31 MEST


Rudi Lutter wrote:
> On Mon, 26 Jun 2000, George Heintzelman wrote:
> >Hi rooters,
> >
> >Since we sometimes run root in an automated process, it is a little 
> >annoying that we turn up with the commands executed in this automated 
> >mode nevertheless in the .root_hist. Even if I do:
> >
> >root -b -q <scriptname>

> 
> Hi George,
> 
> I solved this problem by appending a gSystem->Exit(0) at the end of my script.

Rudi,

This doesn't seem to work for me. I tried the following test script (~/test/test_hist.C):

{ 
cout << "Test script." << endl;
gSystem->Exit(0);
} 

And then did:
root -q -b ~/test/test_hist.C

and '.x ~/test/test_hist.C' appeared in the .root_hist file. Am I missing something?

George Heintzelman
gah@bnl.gov



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:29 MET