From owner-freebsd-questions@FreeBSD.ORG Fri Jan 23 09:51:06 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B8B816A4CE for ; Fri, 23 Jan 2004 09:51:06 -0800 (PST) Received: from lilzmailso01.liwest.at (lilzmailso01.liwest.at [212.33.55.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 206D343D31 for ; Fri, 23 Jan 2004 09:51:05 -0800 (PST) (envelope-from dgw@liwest.at) Received: from cm58-27.liwest.at ([212.33.58.27]) by lilzmailso01.liwest.at with esmtp (Exim 4.24) id 1Ak5SQ-0002rc-FV; Fri, 23 Jan 2004 18:51:02 +0100 From: Daniela To: Martin McCormick , freebsd-questions@freebsd.org Date: Fri, 23 Jan 2004 18:49:52 +0000 User-Agent: KMail/1.5.3 References: <200401231713.i0NHDCB7011525@dc.cis.okstate.edu> In-Reply-To: <200401231713.i0NHDCB7011525@dc.cis.okstate.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401231849.52192.dgw@liwest.at> Subject: Re: Is this a Race Condition? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jan 2004 17:51:06 -0000 On Friday 23 January 2004 17:13, Martin McCormick wrote: > I have a cron job that looks for files in /tmp and other > directories that are more than X days old so that they go away and > don't keep piling up. Every few days, I get a message like: > > ------- Forwarded Message > > > Date: Fri, 23 Jan 2004 10:51:00 CST > > From: root@sistem.domain(Cron Daemon) > Subject: Cron find /var/tmp -name NOTESTS -mtime +1 -exec rm > -f {} \; > > > find: /var/tmp/okstate.zone.32220: No such file or directory > > My guess is that find expands the tree but the temporary file > is gone by the time the find command actually executes the rm command. Yes, that's most likely the cause. > The messages are purely random as to the file name and > directory. > > Thanks. > > Martin McCormick WB5AGZ Stillwater, OK > OSU Information Technology Division Network Operations Group > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"