Re: root_hist

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Sat, 23 Sep 2006 12:56:12 +0200


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
>>>>
>>>>
>>>
>>
>>

>
Received on Sat Sep 23 2006 - 12:56:17 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:01 MET