> Hello Dan
> Thanks for the response. I tried your suggestion but I still 
> get the differing sizes... So I'm still looking for a solution.
> > >    my($size) = `du -sb <directory-path>`;

My suggetion just helped you get only the number of bytes it returned into $size 
instead of the 
Bytes, whitespace, and directory that du returned.

If you're getting different sizes try first to figure out what du is doing via command 
line on those directories.
Is somthign running on the server that the size could fluxuate quickly in those 
directories?
 also man du 

Perhaps an example of the same directory returning two results would help.

DMuey

> > >
> > > However the differing results only occurs on some directories and 
> > > not on others.
> >
> > Probably because  du -sb is not retuneing an array like you seem to 
> > expect
> of the size then directory.
> > Try this:
> >
> >  my($size,$dir) = split(/\s+/,qx(du -sb $mydir));
> > # you don't have to have $dir
> > # sometimes you also need the entire path to program : 
> /usr/bin/du -sb 
> > # the qx is a better way to do backtick execution, just fyi
> >
> > HTH
> >
> > DMuey

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to