RE: du in ROOT

From: Fine, Valeri <fine_at_bnl.gov>
Date: Wed, 26 Nov 2008 10:37:05 -0500


Check

http://root.cern.ch/root/html/TSystem.html#TSystem:GetFsInfo

  Get info about a file system:

  fs type,
  block size,
  number of blocks,
  number of free blocks.

http://root.cern.ch/root/html/TUnixSystem.html#TUnixSystem:GetFsInfo

Best Regards

                         Valeri Fine


Brookhaven National Laboratory
Upton, NY 11973, USA
Phone: +1 631 344 7806
Fax: +1 631 344 4206
E-mail: fine_at_bnl.gov

> -----Original Message-----
> From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch]
On
> Behalf Of Chiara Zampolli
> Sent: Wednesday, November 26, 2008 10:29 AM
> To: Rene Brun
> Cc: Root
> Subject: Re: [ROOT] du in ROOT
>
> 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 - 16:37:09 CET

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