From owner-freebsd-questions Wed Jul 21 12:13:51 1999 Delivered-To: freebsd-questions@freebsd.org Received: from trinity.lee.net (trinity.lee.net [208.229.121.1]) by hub.freebsd.org (Postfix) with ESMTP id 0508114FFC for ; Wed, 21 Jul 1999 12:13:41 -0700 (PDT) (envelope-from awells@journalstar.com) Received: from journalstar.com (leepcC-159.sub-c.lee.net [208.205.126.159]) by trinity.lee.net (8.9.1/8.9.0) with ESMTP id OAA04664 for ; Wed, 21 Jul 1999 14:16:15 -0500 Message-ID: <37961C39.D96116A2@journalstar.com> Date: Wed, 21 Jul 1999 14:15:05 -0500 From: Tony Wells X-Mailer: Mozilla 4.61 [en] (X11; I; FreeBSD 3.0-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Find Command References: <000001bed321$118409c0$130a70d8@tilmant.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG A caveat about using the "." directory with "find" through a cron job is what is the home directory for cron? Make sure your script cd's to the directory you want or list the full pathname in the find command, otherwise you could lose files you hadn't planned on. Good Luck! Tom Tilmant wrote: > > I would like to setup a cron job that search for last access date >30 days > and remove the file. Could someone help me with the find command that would > handle this. > > Thanks > > Tom > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message