2007/2/9, R. B. Riddick <[EMAIL PROTECTED]>:
--- Victor Loureiro Lima <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] 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
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to