[Tfug] One more question re: daily chron job...

Stott, Will will.stott at ventana.roche.com
Tue May 26 17:27:29 MST 2009


Why can't you place ticks around it in a bash script and execute the script through crontab? Seems pretty straight forward to me.

Will

----- Original Message -----
From: tfug-bounces at tfug.org <tfug-bounces at tfug.org>
To: Tucson Free Unix Group <tfug at tfug.org>; Main PLUG discussion list <plug-discuss at lists.plug.phoenix.az.us>
Sent: Tue May 26 20:22:41 2009
Subject: [Tfug] One more question re: daily chron job...

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


More information about the tfug mailing list