note
Athanasius
<p>I don’t know of any reason why [doc://unlink] should fail under Linux, and in any case, from the fact that there is no error message (i.e., <tt>die</tt> is not called), it seems unlikely that <tt>unlink</tt> is the problem. Try running something like this:</p>
<code>
for ( <grm_backup-*_*_*_*_*_*_EST_*.bak>,
<backup_db-*_*_*_*_*_*_EST_*.bak> )
{
printf "File '%s' was last modified %d days ago\n", $_, -M;
}
</code>
<p>to verify that there are files meeting the criterion for deletion.</p>
<p>Note also that the <tt>until</tt> loop is doing nothing. It is equivalent to:</p>
<code>
while ($log_written == 0)
{
...
$log_written = 1;
}
</code>
<p>which guarantees that there will only ever be a single pass.</p>
<p>Hope that helps,</p>
<div class="pmsig"><div class="pmsig-968231">
<p>
<table width="100%">
<tr>
<td align="left">
Athanasius <font color="#008000"><</font>[href://http://www.biblegateway.com/passage/?search=John%203:16&version=NLV|<font color="#008000">°</font>]<font color="#008000">(((><</font> <i>contra mundum</i>
</td>
<td align="right">
[href://http://translate.google.com.au/#la/en/Iustus%20alius%20egestas%20vitae%2C%20eros%20Piratica%2C|<b>Iustus alius egestas vitae, eros Piratica,</b>]
</td>
</tr>
</table>
</p>
</div></div>
1008432
1008432