On Fri,  9 Feb 2007 18:10:00 -0200
"pc.suporte" <[EMAIL PROTECTED]> wrote:

> Se eu executo do shell o comando: "du -s /etc" eu obtenho como resposta:
> "1672    /etc" Agora se eu executo o mesmo comando "du -s /etc" através da
> crontab eu obtenho a resposta "3344    /etc" Ou seja.... a crontab retorna
> o DOBRO do tamanho que realmente é. Isso vale pra qualquer diretório, não
> necessáriamente o /etc.

Não é bug, é BLOCKSIZE padrão em 512.

        % setenv BLOCKSIZE 512
        % du -s /lib
        6508    /lib

        % setenv BLOCKSIZE 4096
        % du -s /lib
        814     /lib

        % setenv BLOCKSIZE 1024
        % du -s /lib
        3254    /lib

du(1)
ENVIRONMENT
     BLOCKSIZE  If the environment variable BLOCKSIZE is set, and the -k
                option is not specified, the block counts will be displayed in
                units of that size block.  If BLOCKSIZE is not set, and the -k
                option is not specified, the block counts will be displayed in
                512-byte blocks.

-- 
Ricardo Nabinger Sanchez     <[EMAIL PROTECTED],wait4.org}>
Powered by FreeBSD

  "Left to themselves, things tend to go from bad to worse."
-------------------------
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd

Reply via email to