From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 9 22:49:40 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4598A16A400 for ; Fri, 9 Feb 2007 22:49:40 +0000 (UTC) (envelope-from victorloureirolima@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.227]) by mx1.freebsd.org (Postfix) with ESMTP id 0680013C461 for ; Fri, 9 Feb 2007 22:49:39 +0000 (UTC) (envelope-from victorloureirolima@gmail.com) Received: by wr-out-0506.google.com with SMTP id 69so1202155wra for ; Fri, 09 Feb 2007 14:49:39 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DOSuwzA++TOFDfuz/fzeP9w+2JTQn6OF+xQdBVP6u6kzZcAIVOVfg7fqDSfQRZEMglNXSWyRIlhXs72HQivysxZVdUg6m0Fn9X+2hY3/OTAN3eA5Ed6FagbxADDMsMaSVtPnF4CysAu2FSr8DSGYufXJSIlg2EL7U4u7PfUW0LE= Received: by 10.114.175.16 with SMTP id x16mr6409492wae.1171061378859; Fri, 09 Feb 2007 14:49:38 -0800 (PST) Received: by 10.114.175.5 with HTTP; Fri, 9 Feb 2007 14:49:38 -0800 (PST) Message-ID: Date: Fri, 9 Feb 2007 20:49:38 -0200 From: "Victor Loureiro Lima" To: freebsd-hackers@freebsd.org, freebsd-fs@freebsd.org In-Reply-To: <205542.91900.qm@web30309.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <205542.91900.qm@web30309.mail.mud.yahoo.com> Cc: Subject: Re: /usr/bin/du + crontab weird bug X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Feb 2007 22:49:40 -0000 2007/2/9, R. B. Riddick : > --- Victor Loureiro Lima 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