<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Thank you very much David...<br><br>Valerio<br><br>--- <b>Gio 23/10/08, Fawcett, David <i>&lt;David.Fawcett@state.mn.us&gt;</i></b> ha scritto:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">Da: Fawcett, David &lt;David.Fawcett@state.mn.us&gt;<br>Oggetto: RE: [mapserver-users] disk space<br>A: valerio.vianello@yahoo.it, "mapserver" &lt;mapserver-users@lists.osgeo.org&gt;<br>Data: Giovedì 23 ottobre 2008, 15:24<br><br><div id="yiv123248558">
<title>Message</title>
 
<div><span class="956011913-23102008"><font size="2" color="#0000ff" face="Arial">Valerio, </font></span></div>
<div><span class="956011913-23102008"><font size="2" color="#0000ff" face="Arial"></font></span>&nbsp;</div>
<div><span class="956011913-23102008"><font size="2" color="#0000ff" face="Arial">I 
think that most people just set up a cron job or a scheduled job on their server 
to delete all of the temporary images at some periodic interval.&nbsp; (e.g. 
24hrs, 12hrs, 1hr)&nbsp; Your interfval would depend on the number of images 
that you are generating, disk space, etc.</font></span></div>
<div><span class="956011913-23102008"><font size="2" color="#0000ff" face="Arial"></font></span>&nbsp;</div>
<div><span class="956011913-23102008"><font size="2" color="#0000ff" face="Arial">In the 
code that you use to delete the files, you may want to look at the timestamps on 
the images and only delete images that are at least 1 minute old, so you don't 
accidentally delete an image before it can be used by the page that called 
it.</font></span></div>
<div><span class="956011913-23102008"><font size="2" color="#0000ff" face="Arial"></font></span>&nbsp;</div>
<div><span class="956011913-23102008"><font size="2" color="#0000ff" face="Arial">David.</font></span></div>
<blockquote style="margin-right: 0px;">
  <div></div>
  <div class="OutlookMessageHeader" dir="ltr" align="left" lang="en-us"><font size="2" face="Tahoma">-----Original Message-----<br><b>From:</b> 
  mapserver-users-bounces@lists.osgeo.org 
  [mailto:mapserver-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>valerio 
  vianello<br><b>Sent:</b> Thursday, October 23, 2008 6:06 AM<br><b>To:</b> 
  'mapserver'; Venkat Rao Tammineni<br><b>Subject:</b> RE: [mapserver-users] 
  disk space<br><br></font></div>
  <table border="0" cellpadding="0" cellspacing="0">
    <tbody>
    <tr>
      <td valign="top">Thanks for the quick reply,<br><br>When you run this 
        function? after each requests ? but if so, the client is able to read 
        the image before you delete it ?<br><br>best 
        regards,<br><br>Valerio<br><br><br>--- <b>Gio 23/10/08, Venkat Rao 
        Tammineni <i>&lt;vtammineni@roulacglobal.com&gt;</i></b> ha scritto:<br>
        <blockquote style="border-left: 2px solid rgb(16, 16, 255); padding-left: 5px; margin-left: 5px;">Da: 
          Venkat Rao Tammineni &lt;vtammineni@roulacglobal.com&gt;<br>Oggetto: 
          RE: [mapserver-users] disk space<br>A: valerio.vianello@yahoo.it, 
          "'mapserver'" &lt;mapserver-users@lists.osgeo.org&gt;<br>Data: Giovedì 
          23 ottobre 2008, 13:05<br><br>
          <div id="yiv1232889979">
          <style>#yiv123248558 UNKNOWN {
FONT-FAMILY:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
#yiv123248558 UNKNOWN {
FONT-FAMILY:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
#yiv123248558 #yiv1232889979 #yiv1232889979 P.MsoNormal {
FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman", "serif";}
#yiv123248558 #yiv1232889979 LI.MsoNormal {
FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman", "serif";}
#yiv123248558 #yiv1232889979 DIV.MsoNormal {
FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman", "serif";}
#yiv123248558 #yiv1232889979 A:link {
COLOR:blue;TEXT-DECORATION:underline;}
#yiv123248558 #yiv1232889979 SPAN.MsoHyperlink {
COLOR:blue;TEXT-DECORATION:underline;}
#yiv123248558 #yiv1232889979 A:visited {
COLOR:purple;TEXT-DECORATION:underline;}
#yiv123248558 #yiv1232889979 SPAN.MsoHyperlinkFollowed {
COLOR:purple;TEXT-DECORATION:underline;}
#yiv123248558 #yiv1232889979 SPAN.EmailStyle17 {
COLOR:#1f497d;FONT-FAMILY:"Calibri", "sans-serif";}
#yiv123248558 #yiv1232889979 .MsoChpDefault {

}
#yiv123248558 UNKNOWN {
MARGIN:1in;}
#yiv123248558 #yiv1232889979 DIV.Section1 {

}
</style>

          <div class="Section1">
          <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">Hi,</span></p>
          <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span>&nbsp;</p>
          <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">&nbsp; 
          Why don’t you write method &nbsp;for deleting png .mapserver will take 
          care about creating an image.I have&nbsp; C# code.</span></p>
          <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">The 
          below code will delete all the files form OutputDIR.</span></p>
          <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span>&nbsp;</p>
          <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">I 
          hope it helps you. Or At least you can get some idea about your 
          task.</span></p>
          <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span>&nbsp;</p>
          <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">Thanks 
          and Regards</span></p>
          <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">Venkat.</span></p>
          <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span>&nbsp;</p>
          <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: 'Courier New';">public</span><span style="font-size: 10pt; font-family: 'Courier New';"> <span style="color: blue;">void</span> Deleteimages()</span></p>
          <p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';">{</span></p>
          <p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
          <span style="color: blue;">try</span></span></p>
          <p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
          {</span></p>
          <p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
          <span style="color: blue;">foreach</span> (<span style="color: blue;">string</span> f <span style="color: blue;">in</span> System.IO.<span style="color: teal;">Directory</span>.GetFiles(OutputDir))</span></p>
          <p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
          {</span></p>
          <p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
          System.IO.<span style="color: teal;">File</span>.Delete(f);</span></p>
          <p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
          &nbsp;&nbsp;}</span></p>
          <p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
          }</span></p>
          <p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
          <span style="color: blue;">catch</span> (<span style="color: teal;">Exception</span> exp)</span></p>
          <p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
          { }</span></p>
          <p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';">}</span></p>
          <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span>&nbsp;</p>
          <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span>&nbsp;</p>
          <div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
          <p class="MsoNormal"><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';">From:</span></b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';"> 
          mapserver-users-bounces@lists.osgeo.org 
          [mailto:mapserver-users-bounces@lists.osgeo.org] <b>On Behalf Of 
          </b>valerio vianello<br><b>Sent:</b> Thursday, October 23, 2008 4:25 
          PM<br><b>To:</b> mapserver<br><b>Subject:</b> [mapserver-users] disk 
          space</span></p></div>
          <p class="MsoNormal">&nbsp;</p>
          <table class="MsoNormalTable" border="0" cellpadding="0" cellspacing="0">
            <tbody>
            <tr>
              <td style="padding: 0in;" valign="top">
                <p class="MsoNormal" style="margin-bottom: 12pt;">Dear 
                all,<br><br>I have a demo where I'm using mapserver cgi 
                interface. I'm using the browse mode so each time mapserver 
                receive a request, it creates a temporary png on the server 
                filesystem. <br><br>Do you know how and when i can delete those 
                temporary image since they are used only one time ?&nbsp; 
                <br><br>An attacker could easily&nbsp; fill all the server 
                HD&nbsp; locking all the 
              system.<br><br>Thanks<br><br>Valerio</p></td></tr></tbody></table>
          <p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Calibri','sans-serif';"></span>&nbsp;</p>
          <div class="MsoNormal" style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: 'Calibri','sans-serif';">
          <hr size="1" width="100%" align="center">
          </span></div>
          <p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Arial','sans-serif';">Scopri il 
          <a rel="nofollow" target="_blank" href="http://us.rd.yahoo.com/mail/it/taglines/yahoo/ymail/SIG=11djrg460/**http%3A%2F%2Fwww.ymailblogit.com%2Fblog%2F">Blog di Yahoo! Mail</a>: trucchi, novità, 
          consigli... e scrivi la tua opinione!</span><span style="font-size: 10pt; font-family: 'Calibri','sans-serif';"></span></p></div></div></blockquote></td></tr></tbody></table><br>
  <hr size="1">
  <font size="2" face="Arial">Scopri il <a rel="nofollow" target="_blank" href="http://us.rd.yahoo.com/mail/it/taglines/yahoo/ymail/SIG=11djrg460/**http%3A%2F%2Fwww.ymailblogit.com%2Fblog%2F">Blog 
  di Yahoo! Mail</a>: trucchi, novità, consigli... e scrivi la tua 
  opinione!</font></blockquote></div></blockquote></td></tr></table><br>



      <hr size=1><font face="Arial" size="2">Scopri il <a href="http://us.rd.yahoo.com/mail/it/taglines/yahoo/ymail/SIG=11djrg460/**http%3A%2F%2Fwww.ymailblogit.com%2Fblog%2F"> Blog di Yahoo! Mail</a>: trucchi, novità, consigli... e scrivi la tua opinione!</font>