Ricardo, Matou a charada!!! Muito obrigado!
Uso o bash. []s, Ari 2009/11/9 Ricardo Campos Passanezi <ri...@ige.unicamp.br> > On Mon, Nov 09, 2009 at 04:39:26PM -0200, Ari Arantes Filho wrote: > > Dá até medo de reboot: > > > > # uptime > > 4:38PM up 456 days, 17:21, 5 users, load averages: 0.16, 0.16, 0.10 > > Será que não tem a ver com alguma variável de ambiente setada (supondo > que você usa a [t]csh), em especial a "BLOCKSIZE"??? > > > Veja a manpage do du: > > .... > -B blocksize > Calculate block counts in blocksize byte blocks. This is > differ- > ent from the -k, -m options or setting BLOCKSIZE and gives an > estimate of how much space the examined file hierachy would > require on a filesystem with the given blocksize. Unless in -A > mode, blocksize is rounded up to the next multiple of 512. > .... > -k Display block counts in 1024-byte (1-Kbyte) blocks. > .... > ENVIRONMENT > BLOCKSIZE If the environment variable BLOCKSIZE is set, and the -k, -m > or -h options are not specified, the block counts will be > dis- > played in units of that block size. If BLOCKSIZE is not > set, > and the -k, -m or -h options are not specified, the block > counts will be displayed in 512-byte blocks. > > Veja: > > # cd /etc > # unsetenv BLOCKSIZE > # du -s > 3732 . > # setenv BLOCKSIZE k > # du -s > 1866 . > # unsetenv BLOCKSIZE > # du -s -k > 1866 . > > Colocando o "-k" no seu script deve resolver. > > > > -- > Ricardo Campos Passanezi > ------------------------- > Histórico: http://www.fug.com.br/historico/html/freebsd/ > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd > ------------------------- Histórico: http://www.fug.com.br/historico/html/freebsd/ Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd