[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jffnms-users
Subject:    Re: [jffnms-users] nightly cron cleanup failed
From:       Heitzso <heitzso () growthmodels ! com>
Date:       2003-10-20 16:10:49
[Download RAW message or body]

Thanks Craig,  I added the hyphen into the /etc/cron.daily/jffnms file
as you note below.


Craig Small wrote:

>On Sun, Oct 19, 2003 at 02:52:14PM -0400, Heitzso wrote:
>  
>
>>The cron.daily entry that contains the find commands (partial) is:
>>=====================================
>>    IMAGEPATH=`cat /etc/jffnms/config.ini 2>/dev/null | perl -e 'while 
>>(<>) { if ($_ =~ /^\s*images_real_path\s*=\s*(\S+)/) { print "$1\n"; 
>>exit 0; }}'`
>>if [ -z $IMAGEPATH ]; then
>>  echo "images_real_path not found in jffnms configuration file config.ini"
>>          return
>>  fi
>>  # Delete any .png .dot and .map files older than a day
>> find $IMAGEPATH -type f  -mtime +1 regex '.*\.\(png\|dot\|map\)$' 
>>-exec rm {} \;
>>    
>>
>find $IMAGEPATH -type f  -mtime +1 regex '.*\.\(png\|dot\|map\)$'
>regex is missing a -
>sorry about that
>
>find $IMAGEPATH -type f  -mtime +1 -regex '.*\.\(png\|dot\|map\)$'
>
>  - Craig
>  
>




-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com
_______________________________________________
jffnms-users mailing list
jffnms-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jffnms-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic