/usr/bin/du + crontab weird bug

Victor Loureiro Lima victorloureirolima at gmail.com
Fri Feb 9 22:49:40 UTC 2007


2007/2/9, R. B. Riddick <arne_woerner at yahoo.com>:
> --- Victor Loureiro Lima <victorloureirolima at gmail.com> wrote:
> > root at zion# du -s /etc
> > 2544    /etc
> >
> > What gives that when "/usr/bin/du -s" is running from crontab is gives
> > the exact double of entries in the directory but when it is running
> > from console itself, it doesnt display the same amount of
> > entries!?!?!?!
> >
> I think, it is about block size:
> in the crontab environment block size is 512B and in ur shell it is 1024B.
>
> There is an environment variable: BLOCKSIZE
> and there is an option: -k
>
> Just try "du -ks /etc" in ur crontab...
>
> -Arne

Solved!!! Thanks!

victor loureiro lima


More information about the freebsd-hackers mailing list