Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Sep 1998 00:45:07 -0700
From:      Studded <Studded@dal.net>
To:        Lanny Baron <beef@cybertouch.org>
Cc:        questions@FreeBSD.ORG
Subject:   Re: need a crontab example...
Message-ID:  <3600BE03.7C22960E@dal.net>
References:  <Pine.BSF.3.96.980916180619.4131B-100000@beef.cybertouch.org>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3600BE03.7C22960E>