Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Feb 2007 13:56:22 -0800 (PST)
From:      "R. B. Riddick" <arne_woerner@yahoo.com>
To:        Victor Loureiro Lima <victorloureirolima@gmail.com>, freebsd-hackers@freebsd.org, freebsd-fs@freebsd.org
Subject:   Re: /usr/bin/du + crontab weird bug
Message-ID:  <205542.91900.qm@web30309.mail.mud.yahoo.com>
In-Reply-To: <ac00e00a0702091335v79861961s1bfe637666e30b42@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--- Victor Loureiro Lima <victorloureirolima@gmail.com> wrote:
> root@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?205542.91900.qm>