Re: du in ROOT

From: Fons Rademakers <Fons.Rademakers_at_cern.ch>
Date: Wed, 26 Nov 2008 18:07:30 +0100


See my last mail ;-)

Chiara Zampolli wrote:
> Hi Fons,
>
> well, in fact I would need the equivalent of "df" (yesterday I
> mistyped, sorry :-( ), which looks like what Valerie suggests. But I
> cannot make it work... see my last mail.
> Thanks!
> chiara
>
>
> Fons Rademakers wrote:

>> Hi Chiara,
>>
>>    if you want to get info on a filesystem, to see if there is still 
>> space free you can use:
>>
>>   TSystem::GetFsInfo()
>>
>> but this is not the same as "du .".
>>
>> Cheers, Fons.
>>
>>
>> Chiara Zampolli wrote:
>>> Hi Rene,
>>>
>>>    yes, I know. I was wondering whether this was already implemented 
>>> as a method of some class, because what I would need is then to see 
>>> how much free space I have left (in percentage), which would mean to 
>>> call awk, but if you had something like GetDiskUsed() and 
>>> GetDiskAvailable(), it would have been nicer...
>>>    Thanks!
>>>
>>>             c.
>>>
>>>
>>> Rene Brun wrote:
>>>> Chiara,
>>>>
>>>> You can always do:
>>>> gSystem->Exec("du . >du.log")
>>>>
>>>> Rene Brun
>>>>
>>>> Chiara Zampolli wrote:
>>>>> Hi all,
>>>>>
>>>>>    is there a way in ROOT to get the same information as those one 
>>>>> can get from the unix command du?
>>>>>    Thanks and cheers,
>>>>>
>>>>>             Chiara
>>>>>
>>>>
>>>
>>

>
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers_at_cern.ch              Phone: +41 22 7679248
WWW:    http://fons.rademakers.org           Fax:   +41 22 7669640
Received on Wed Nov 26 2008 - 18:07:33 CET

This archive was generated by hypermail 2.2.0 : Wed Nov 26 2008 - 23:50:01 CET