Date: Fri, 9 Feb 2007 20:49:38 -0200 From: "Victor Loureiro Lima" <victorloureirolima@gmail.com> To: freebsd-hackers@freebsd.org, freebsd-fs@freebsd.org Subject: Re: /usr/bin/du + crontab weird bug Message-ID: <ac00e00a0702091449p1359c37v4e3473c6e51ddad5@mail.gmail.com> In-Reply-To: <205542.91900.qm@web30309.mail.mud.yahoo.com> References: <ac00e00a0702091335v79861961s1bfe637666e30b42@mail.gmail.com> <205542.91900.qm@web30309.mail.mud.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
2007/2/9, R. B. Riddick <arne_woerner@yahoo.com>: > --- 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 Solved!!! Thanks! victor loureiro lima
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ac00e00a0702091449p1359c37v4e3473c6e51ddad5>