From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 9 22:23:07 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 318FC16A405 for ; Fri, 9 Feb 2007 22:23:07 +0000 (UTC) (envelope-from arne_woerner@yahoo.com) Received: from web30309.mail.mud.yahoo.com (web30309.mail.mud.yahoo.com [209.191.69.71]) by mx1.freebsd.org (Postfix) with SMTP id A406813C474 for ; Fri, 9 Feb 2007 22:23:03 +0000 (UTC) (envelope-from arne_woerner@yahoo.com) Received: (qmail 94792 invoked by uid 60001); 9 Feb 2007 21:56:22 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=CBDOX2e2uMvmz4QiaJZeTJTll92HrmP9TTX+VNX/fhwqe5Cfv/xDi6oAw91eLKxHV5KoX3ifjj7/fVZnpsCAjn7L/uWuIIwwZej//mdYaRGeXB8WVFd2xqtecB55Ap6mDnUb/i8EDPR9GcVR3en5B6AKqJ1rIw5Cr3EjAkku/5g=; X-YMail-OSG: 2Xyz54EVM1kTXyj9CZSPZJWPD_YbBt_YPogj4Fr7ukpAOaw8od0x49xMMuJrjiFhBH.kOYQ23N77Vf55DF2vs.gO.J6bjOGAAF32zg.qkPZTFNNc8xZhcoKFyAA00z49UivdOXZEcwUK_JI- Received: from [213.54.162.179] by web30309.mail.mud.yahoo.com via HTTP; Fri, 09 Feb 2007 13:56:22 PST Date: Fri, 9 Feb 2007 13:56:22 -0800 (PST) From: "R. B. Riddick" To: Victor Loureiro Lima , freebsd-hackers@freebsd.org, freebsd-fs@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <205542.91900.qm@web30309.mail.mud.yahoo.com> X-Mailman-Approved-At: Sat, 10 Feb 2007 00:02:40 +0000 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:23:07 -0000 --- 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 ____________________________________________________________________________________ Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097