One more question re: daily chron job...

JD Austin jd at twingeckos.com
Tue May 26 17:27:15 MST 2009


If it works manually but not in cron you'll probably want to fully qualify
the paths of all commands.
--
JD Austin
Twin Geckos Technology Services LLC
jd at twingeckos.com
480.288.8195x201
http://www.twingeckos.com


Ogden Nash <http://www.brainyquote.com/quotes/authors/o/ogden_nash.html>  -
"The trouble with a kitten is that when it grows up, it's always a cat."

On Tue, May 26, 2009 at 5:22 PM, Jim March <1.jim.march at gmail.com> wrote:

> 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
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20090526/a5a032b9/attachment.htm 


More information about the PLUG-discuss mailing list