delete images
Didrik Pinte
pinted at TISCALI.BE
Fri Feb 11 02:03:17 PST 2005
Le vendredi 11 février 2005 à 10:45 +0100, Jose Luis Gonzalez a écrit :
> I work in Linux and with java.
> What i do now is to save the mao i have created wih imageObj img
> img.save("path/mymap.png",map) and the read it to display it on the
> web page.
> After displaying I wanted to delete it.
>
> Thanks
>
> Jose Luis
Use this in a cron job (every 5 minutes, or every hour, or every day
depending on your server hits) :
find /.../mapserver/tmp -name '*.png' -mmin +5 -exec rm -rf {} \;
it will only delete files older than 5 minutes.
Didrik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message num?riquement sign?e
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050211/12a6cbe5/attachment.sig>
More information about the MapServer-users
mailing list