MapTools.org

[maplab-users] batch script for deleting ms_tmp files

Charlton Purvis cpurvis@asg.sc.edu
Fri, 14 Mar 2003 09:23:31 -0500
This is a multi-part message in MIME format.

------_=_NextPart_001_01C2EA35.4A3C2EB6
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi, Paul:

=20

From http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptRH73.

... create "/etc/cron.daily/ms_clear_tmp.sh" ... you can also place the
file in /etc/cron.hourly/ for busier sites...=20

 #! /bin/sh
 #
 # MapServer temporary file cleanup - run daily by cron
 #
 # Flush all files from /tmp/ms_tmp older than 6 hours (360 minutes)
 #
 find /tmp/ms_tmp -name "*.*" -amin +360 -exec rm -f {} \;
 exit 0

=20

-----Original Message-----
From: Paul Dymecki [mailto:millardymecki@sympatico.ca]=20
Sent: Friday, March 14, 2003 6:52 AM
To: maplab-users@dmsolutions.ca
Subject: [maplab-users] batch script for deleting ms_tmp files

=20

Hi,

    I seem to remember a posting a while back about a batch script for
deleting files from the ms_tmp folder.  Does anyone know where i could
get a hold of this?

thx,

Paul


------_=_NextPart_001_01C2EA35.4A3C2EB6
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
p
	{margin-right:0in;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman";}
pre
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
span.EmailStyle17
	{font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body bgcolor=3Dwhite lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Hi, Paul:</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>From <a
href=3D"http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptRH73">ht=
tp://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptRH73</a>.</span></=
font></p>

<p><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt'>... create
&quot;/etc/cron.daily/ms_clear_tmp.sh&quot; ... you can also place the =
file in
/etc/cron.hourly/ for busier sites... </span></font></p>

<pre><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&nbsp;#! =
/bin/sh</span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'> =
#</span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'> # =
MapServer temporary file cleanup - run daily by =
cron</span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'> =
#</span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'> # Flush =
all files from /tmp/ms_tmp older than 6 hours (360 =
minutes)</span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'> =
#</span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'> find =
/tmp/ms_tmp -name &quot;*.*&quot; -amin +360 -exec rm -f {} =
\;</span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'> exit =
0</span></font></pre>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original =
Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b> Paul Dymecki =
[mailto:millardymecki@sympatico.ca]
<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Friday, March 14, =
2003 6:52
AM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> =
maplab-users@dmsolutions.ca<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> [maplab-users] =
batch
script for deleting ms_tmp files</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Hi,</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp; I seem =
to
remember a posting a while back about a batch script for deleting files =
from
the ms_tmp folder.&nbsp; Does anyone know where i could get a hold of =
this?</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>thx,</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Paul</span></font></p>

</div>

</div>

</body>

</html>
=00
------_=_NextPart_001_01C2EA35.4A3C2EB6--


This archive was generated by Pipermail.