From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 9 21:35:38 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 7E03B16A402 for ; Fri, 9 Feb 2007 21:35:38 +0000 (UTC) (envelope-from victorloureirolima@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.226]) by mx1.freebsd.org (Postfix) with ESMTP id 4362413C4A8 for ; Fri, 9 Feb 2007 21:35:38 +0000 (UTC) (envelope-from victorloureirolima@gmail.com) Received: by wr-out-0506.google.com with SMTP id 69so1177985wra for ; Fri, 09 Feb 2007 13:35:36 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=NWXu6EtP4BFbtQcfNm056MFNKs+ezfqGTrQdk8TNWpfoQt799U4zcqi98+PfnyAh4PB3U+sl8vrJQhYpUteY717DcTB6mF3swp2lvAKGUHL3S3H75vp7WgQFESj8aSwUO79u8u6is+etVTkuvh1cs4PE+Y4FLEz1HlwQ2Ec41iw= Received: by 10.114.152.17 with SMTP id z17mr6393213wad.1171056935875; Fri, 09 Feb 2007 13:35:35 -0800 (PST) Received: by 10.114.175.5 with HTTP; Fri, 9 Feb 2007 13:35:35 -0800 (PST) Message-ID: Date: Fri, 9 Feb 2007 19:35:35 -0200 From: "Victor Loureiro Lima" To: freebsd-hackers@freebsd.org, freebsd-fs@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: /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 21:35:38 -0000 Hello -hackers and -fs, Sorry for the cross-post but I didnt know where this particular post belonged to... In a .br FreeBSD related mailing-list a user seems to have a found a bug when using /usr/bin/du and crontab together, I am posting it here to see what responses we get: root@zion# du -s /etc 2544 /etc root@zion# cat /etc/crontab | grep du 30 19 * * 5 root /usr/bin/du -s /etc >> /tmp/lele root@zion# date Fri Feb 9 19:29:30 BRST 2007 root@zion# cat /tmp/lele 5088 /etc 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!?!?!?! Weird bug... /usr/bin/du version is: $FreeBSD: src/usr.bin/du/du.c,v 1.38.2.1 2006/06/04 10:23:08 maxim Exp$ uname -a is: FreeBSD zion 6.2-RELEASE FreeBSD 6.2-RELEASE #19: Thu Feb 8 11:00:59 BRST 2007 setuid@zion:/usr/obj/usr/src/sys/zion.kernel amd64 ciao, victor loureiro lima