[mapserver-users] Automatically Clearing Old Map Images

Gregor at HostGIS gregor at hostgis.com
Sat Apr 25 03:17:42 EDT 2009

jchampagne2 wrote:
> Has anybody come up
> with some means or method to automatically clear out old map images once
> they are no longer needed?

Yeah, typical cronjob approaches. I can't say for Windows, but for Linux 
systems you'd create a /etc/cron.hourly file that goes something like 
one of these, depending on your version of "find":

find /maps/images.tmp -mindepth 1 -ctime +1 -exec rm -f {} \;

find /maps/images.tmp -mindepth 1 -ctime +1 -delete

HostGIS, Open Source solutions for the global GIS community
Greg Allensworth - SysAdmin, Programmer, GIS Person, Security
Network+   Server+   A+   Security+

More information about the mapserver-users mailing list