[Mapserver-users] How to empty the TMP directory

Paul Ramsey pramsey at refractions.net
Tue Nov 4 13:22:08 PST 2003


Something which preserves the more recent temp files while deleting the 
older ones is always wise, I like the all-in-one functionality of find:

find /maptmp -type f -cmin +15 -exec /bin/rm {} ';'


Paul

Gregory S. Williamson wrote:

> Guillaume ,
> 
> Mapserver seems to be done with the process once it puts the output files in the directory; you'll have to write a utility program to periodically delete old files. There used to be a utility on the MMS site for doing this under windows; I think a search of the list's archive would turn up the code. Unders *nix you'll want a cron job that runs a script that deletes all files that are older than some amount of time. I can provide a snippet that works under Solarix but don't know about the linux variants.
> 
> HTH,
> 
> Greg Williamson
> DBA
> GlobeXplorer LLC
> 
> -----Original Message-----
> From:	Guillaume MOCCAND [mailto:moccand at ensg.ign.fr]
> Sent:	Tue 11/4/2003 10:50 AM
> To:	mapserver-users at lists.gis.umn.edu
> Cc:	
> Subject:	[Mapserver-users] How to empty the TMP directory
> 
> hi,
> 
> i wonder how i can empty the TMP directory that contains all the files created 
> by Mapserver.
> do i need to configure Mapserver or do i need to proceed without using 
> Mapserver.
> 
> Thanks
> 
> Guillaume MOCCAND
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 
> 
> 
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users


-- 
       __
      /
      | Paul Ramsey
      | Refractions Research
      | Email: pramsey at refractions.net
      | Phone: (250) 885-0632
      \_




More information about the MapServer-users mailing list