Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jan 2004 18:49:52 +0000
From:      Daniela <dgw@liwest.at>
To:        Martin McCormick <martin@dc.cis.okstate.edu>, freebsd-questions@freebsd.org
Subject:   Re: Is this a Race Condition?
Message-ID:  <200401231849.52192.dgw@liwest.at>
In-Reply-To: <200401231713.i0NHDCB7011525@dc.cis.okstate.edu>
References:  <200401231713.i0NHDCB7011525@dc.cis.okstate.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <root@system> 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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401231849.52192.dgw>