From owner-freebsd-questions Thu Sep 17 00:45:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA14280 for freebsd-questions-outgoing; Thu, 17 Sep 1998 00:45:58 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dt053nb4.san.rr.com (dt053nb4.san.rr.com [204.210.34.180]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA14257 for ; Thu, 17 Sep 1998 00:45:43 -0700 (PDT) (envelope-from Studded@dal.net) Received: from dal.net (Studded@localhost [127.0.0.1]) by dt053nb4.san.rr.com (8.8.8/8.8.8) with ESMTP id AAA07452; Thu, 17 Sep 1998 00:45:07 -0700 (PDT) (envelope-from Studded@dal.net) Message-ID: <3600BE03.7C22960E@dal.net> Date: Thu, 17 Sep 1998 00:45:07 -0700 From: Studded Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.06 [en] (X11; I; FreeBSD 2.2.7-STABLE-0914 i386) MIME-Version: 1.0 To: Lanny Baron CC: questions@FreeBSD.ORG Subject: Re: need a crontab example... References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Lanny Baron wrote: > > Hello, > > To the people that responded before, thank you. But what I need is > an example of how to set a crontab whereby, the dir of /tmp would be > cleared of files for any user that the user has left in that dir for more > than 3 days. So on the fourth day, the file owned by /home/madonna or user > madonna would be removed. But a file or files owned by /home/syd or user > syd. Assuming the file(s) owned by syd were 2 days old. Would remain in > the dir of /tmp Try reading the man pages for find, xargs and crotab, or better yet write an sh script to do the job and call that from root's crontab. You really can't expect people to do this FOR you. Unless of course you'd like to pay me my usual fee. :) Good luck, Doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message