[Tfug] One more question re: daily chron job...
Brian Murphy
murphy+tfug at email.arizona.edu
Tue May 26 19:23:51 MST 2009
Is running it in the system cron (and thus as root) out of the question?
I would do that to avoid the sudo complication.
Brian
Quoting Jim March <1.jim.march at gmail.com>:
> Folks,
>
> Last time we wrestled with this, we learned that Zoneminder (camera
> monitor app) can do purges of older files. Except it doesn't work.
> I've tried three times now, it still fills the disk, I'm flat sick and
> tired of it.
>
> There has to be a way in Ubuntu (Jaunty) to do a daily purge chron job
> to the effect of:
>
> ---
> sudo find /media/disk/* -mtime +45 -exec rm {} \;
> ---
>
> That command works fine, executed manually. It purges files older
> than 45 days on a particular hard disk formatted ReiserFS (due to the
> high number of small files).
>
> Any way I can get it to kick off daily?
>
> Thanks,
>
> Jim
>
> _______________________________________________
> Tucson Free Unix Group - tfug at tfug.org
> Subscription Options:
> http://www.tfug.org/mailman/listinfo/tfug_tfug.org
The opinions or statements expressed herein are my own and should not be
taken as a position, opinion, or endorsement of the University of
Arizona.
More information about the tfug
mailing list