http://www.perlmonks.org?node_id=624655


in reply to A wrapper script for tmpwatch in Linux written in Perl

Somewhat off-topic, but would it not be simpler to run tmpwatch out of a cron job on each machine? That way you could pretty much forget about it...

This, of course, assumes that you can determine sane values for it on each machine that cater for those oh-so-pesky users... ;-)

  • Comment on Re: A wrapper script for tmpwatch in Linux written in Perl

Replies are listed 'Best First'.
Re^2: A wrapper script for tmpwatch in Linux written in Perl
by wishartz (Beadle) on Jul 03, 2007 at 12:43 UTC
    We already run a cronjob on each machine which runs tmpwatch, but sometimes with the environment I work in, some of the jobs use so much space that it needs to be run manually sometimes and this could be early in the morning. This script is for the operators work in shifts 24/7 and may need to run a tmpwatch to get rid of some of the files. My manager wants things simplified for them so they just run a script and choose from the menu options, to clean up some of the space.
      Can anybody suggest a better hash structure to use for this program? I've really hit a deadend with this. Thanks