Hi Alexey, of course the second hint of Fons will work. You can set the history file name in 'rootlogon.C' to anything you want including random numbers or a counter stored in your directory. An example with the current date and time: { char logFileName[20]; sprintf(logFileName,"%d.%d.log",TDatime().GetDate(),TDatime().GetTime()); printf(" log file: %s\n", logFileName); gEnv->SetValue("Rint.History", logFileName); } Peter Malzacher Alexey Toptygin wrote: > > Unfortunately, this will not work, as I often run two instances of root > at the same time doing diffirent analysys on the same data, and therefore > in the same directory. Thanks for the idea though! > Alexey > ... > On Mon, 10 Jan 100, Fons Rademakers wrote: > > > Hi Alexey, > > > > a way around it may be to have in every directory where you run root > > a copy of .rootrc. In each local copy you can now set the location of > > the history file by changing the resource: > > > > Rint.History: $(HOME)/.root_hist > > > > Another more dynamic solution could be to have in your rootlogon.C > > something like: > > > > { > > gEnv->SetValue("Rint.History", "/tmp/aap.hist"); > > } > > > > Of course the string "/tmp/aap.hist" could be created depending on the > > name of the current directory, etc. > > > > Cheers, Fons.
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:16 MET