[mapserver-users] tmp files deletion Unix
Ballard,Lowell
LBallard at YesVirginia.org
Tue May 15 05:57:54 PDT 2001
For *nix you can place this text below into a file and add it to your
crontab file. I have put it in a file called cleanimg and stuck that file
in /etc/cron.hourly on my Linux box. It will, on the hour, nuke files that
are more than 5 minutes old. It's a variation of what exists on the
Mapserver site.
** Please note, mine is set up to nuke everything in the
/home/httpd/html/tmp directory so BE CAREFUL (i.e. *.*).
----cut here----
#!/bin/csh
find /home/httpd/html/tmp -name "*.*" -type f -cmin +5 -exec rm -f {} \;
----cut here----
Lowell Ballard
Unix/Database Administrator
Virginia Economic Development Partnership
901 E. Byrd St., Richmond, Va. 23218
http://gis.vedp.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20010515/0d00f3d3/attachment.htm>
More information about the MapServer-users
mailing list