/usr/bin/du + crontab weird bug

R. B. Riddick arne_woerner at yahoo.com
Fri Feb 9 22:23:07 UTC 2007


--- 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


 
____________________________________________________________________________________
Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097


More information about the freebsd-hackers mailing list