Hi,
this has now been implemented in CVS. One can configure the number of history lines to be kept in .rootrc, by setting
Rint.HistSize: 500 Rint.HistSave: 400
As this might not help you with batch jobs we also implemented an env var approach. You can set ROOT_HIST=500:400 - the first value corresponds to HistSize, the (optional) second one to HistSave. You should be able to set ROOT_HIST=0 to disable the history for your batch jobs.
Cheers, Axel.
OKUMURA, Akira wrote:
> Hello Axel,
>
> I do not have any problem with my macro.
>
> I meant to say that:
> $ root
> root[0] .x MyMacro1.C
> root[1] .q
> $ for i in (many files) ; do root -b -q -l .x MyMacro2.C\(${i}\); done
> $ root
> $ root[0] <= Cannot access the history ".x MyMacro1.C" any more.
>
> Sincerely,
>
> OKUMURA, Akira oxon_at_icrr.u-tokyo.ac.jp
> Institute for Cosmic Ray Research, University of Tokyo
> 5-1-5 Kashiwanoha Kashiwa Chiba 277-8582 Japan
> Phone/Fax : +81 4-7136-3153
> Skype : okumura.akira
>
> On 2006/09/23, at 19:56, Axel Naumann wrote:
>
>> Hi, >> >> I believe we're talking about different things. The history line size >> should not create any limitation other than ROOT forgetting the 501st >> command entered. Could you please send us a macro we can execute that >> shows the problem you're trying to solve? >> >> Cheers, Axel. >> >> OKUMURA, Akira wrote: >>> Hello Axel, >>> >>> If users can change the size of history without re-compiling, (e.g. by >>> editing .rootrc) >>> it will be better approach. >>> >>> # like as .bashrc >>> # export HISTSIZE=1000 >>> # export HISTFILESIZE=1000 >>> >>> When I run ROOT many times in batch mode from a shell script, >>> default 500 lines is not enough. >>> >>> Sincerely, >>> >>> OKUMURA, Akira oxon_at_icrr.u-tokyo.ac.jp >>> Institute for Cosmic Ray Research, University of Tokyo >>> 5-1-5 Kashiwanoha Kashiwa Chiba 277-8582 Japan >>> Phone/Fax : +81 4-7136-3153 >>> Skype : okumura.akira >>> >>> On 2006/09/22, at 1:36, Axel Naumann wrote: >>> >>>> Hi, >>>> >>>> hmm, my (and I believe almost everybody's) .root_hist contains the last >>>> 400..499 commands. You can adjust these sizes in clib/src/Getline.c: >>>> >>>> #ifndef HIST_SIZE >>>> #define HIST_SIZE 500 >>>> #endif >>>> #ifndef HIST_SAVE >>>> #define HIST_SAVE 400 >>>> #endif >>>> >>>> It will add up to HIST_SIZE lines; once that's reached, it will remove >>>> the oldest ones, until it's back down to HIST_SAVE lines. >>>> >>>> Cheers, Axel. >>>> >>>> OKUMURA, Akira wrote: >>>>> Hello Rene, >>>>> >>>>> I would like to store more than 100 commands. >>>>> >>>>>> You can use the up and down arrow at the command line, to access the >>>>> previous and next command. The >>>>>> commands are recorded in the history file $HOME/.root_hist. It >>>>>> contains >>>>> the last 100 commands. It is a text >>>>>> file, and you can edit, cut, and paste from it. >>>>> --- from users's guide >>>>> >>>>> Sincerely, >>>>> >>>>> OKUMURA, Akira oxon_at_icrr.u-tokyo.ac.jp >>>>> Institute for Cosmic Ray Research, University of Tokyo >>>>> 5-1-5 Kashiwanoha Kashiwa Chiba 277-8582 Japan >>>>> Phone/Fax : +81 4-7136-3153 >>>>> Skype : okumura.akira >>>>> >>>>> On 2006/09/21, at 4:19, Rene Brun wrote: >>>>> >>>>>> What do you mean by "record size of root_hist" ? >>>>>> There is no such concept. >>>>>> What is the problem? >>>>>> >>>>>> Rene Brun >>>>>> >>>>>> OKUMURA, Akira wrote: >>>>>>> Hello ROOTers, >>>>>>> >>>>>>> Can I change the record size of root_hist ? >>>>>>> >>>>>>> If I have to recompile that part of ROOT, >>>>>>> could you tell me where I need to edit ? >>>>>>> >>>>>>> Sincerely, >>>>>>> >>>>>>> OKUMURA, Akira oxon_at_icrr.u-tokyo.ac.jp >>>>>>> Institute for Cosmic Ray Research, University of Tokyo >>>>>>> 5-1-5 Kashiwanoha Kashiwa Chiba 277-8582 Japan >>>>>>> Phone/Fax : +81 4-7136-3153 >>>>>>> Skype : okumura.akira >>>>>> >>>>>> >>>>> >>>> >>>> >>> >> >>
This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:01 MET