Re: du in ROOT

From: Chiara Zampolli <Chiara.Zampolli_at_bo.infn.it>
Date: Wed, 26 Nov 2008 18:06:23 +0100


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
>>>>
>>>
>>
>
Received on Wed Nov 26 2008 - 18:06:37 CET

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