Remove temp files on NT (RE: remove temp files)

Trevor Banister trevor at banisterconsulting.com
Tue May 9 12:29:41 EDT 2000


Create a batch file (i.e. DelOldGifs.bat) with the following line:

del d:\inetpub\wwwroot\tmp\*.gif

change the path if needed and schedule that job with NT Scheduler

Trevor Banister
Banister Consulting and Online Services


-----Original Message-----
From: bfischer at usgs.gov [mailto:bfischer at usgs.gov]
Sent: Tuesday, May 09, 2000 10:11 AM
To: Stephen Lime
Cc: berend.veldkamp at aris.nl; mapserver-users at lists.gis.umn.edu;
marin at here.is
Subject: Re: remove temp files



Does anyone have a similar script for the NT side?

Brian

Brian Fischer
bfischer at usgs.gov
USGS WRD
2280 Woodale Dr.
Mounds View, MN
(612) 783-3133



 

 

 

 

 

 

 



 

                    "Stephen Lime"

                    <steve.lime at dnr.state.mn.us>         To:
<berend.veldkamp at aris.nl>, <marin at here.is>                                 
                    Sent by:                             cc:
<mapserver-users at lists.gis.umn.edu>                                        
                    owner-mapserver-users at lists.g        Subject:     Re:
remove temp files                                                 
                    is.umn.edu

 

 

                    05/09/00 09:54 AM

 

 




here's the script we use, runs hourly:

#!/bin/csh

find /usr/local/www/docs/tmp -follow -name "*.gif" -exec rm {} \;

Steve

Stephen Lime
Internet Applications Analyst

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> Berend Veldkamp <berend.veldkamp at aris.nl> 05/09/00 05:24AM >>>
Thanks, I know how crontab works. I was only hoping there existed some
feature in mapserver which deletes the gifs.
Bye, Berend

Ma wrote:

> man crontab
>
> ---
> Ma
>
> Berend Veldkamp wrote:
>
> > Hi all,
> > What is the best way to get rid of the temporary gif's that mapserver
> > creates? Is it something my webserver takes care of, or do I have write
> > a script to do this.
> > TIA,
> >
> > Berend
> >

--
______________________________________________

ARIS - Hooghiemstraplein 126 - 3514 AZ Utrecht
tel. +31 30 2769180   -   fax. +31 30 2733578
URL: http://www.aris.nl
______________________________________________









More information about the mapserver-users mailing list