delete images
Didrik Pinte
pinted at TISCALI.BE
Fri Feb 11 05:03:17 EST 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: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050211/12a6cbe5/attachment.bin
More information about the mapserver-users
mailing list