Hi All,<br><br>Thank you for everyone contributing and assisting me.<br><br>I finally wrote my system. What i have done is created a php script and added it to the crontab to run every few hours. For all of you who are interested how I achieved this, please email me and i can attach a sample code for you.<br>
<br>Regards,<br>Sunny<br><br><br><div class="gmail_quote">On Mon, Jul 19, 2010 at 12:19 PM, <span dir="ltr"><<a href="mailto:salsaman@xs4all.nl">salsaman@xs4all.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Mon, July 19, 2010 10:39, Tethys wrote:<br>
> --------<br>
><br>
> <a href="mailto:salsaman@xs4all.nl">salsaman@xs4all.nl</a> writes:<br>
><br>
>>I don't know if this is of any use, but I wrote a C function to check<br>
>> free<br>
>>space for the volume containing a given directory (the directory is<br>
>>created temporarily if it does not exist).<br>
><br>
> Bleurgh! Why not just recursively try statvfs(2) ascending higher up<br>
> the directory tree until you find one that actually exists? No need to<br>
> create a temporary directory for that. But if you absolutely must create<br>
> a directory, can I introduce you to mkdir(2) and rmdir(2)?<br>
><br>
> Your use of system("/bin/mkdir ...") and system("/bin/rm ...") makes my<br>
> skin crawl :-)<br>
<br>
</div>"/bin/mkdir -p" and mkdir() do two different things. As do "/bin/rm -rf"<br>
and rmdir() [ok, so the latter is not really applicable here].<br>
<br>
Yes, I suppose I could have done something more elegant like you suggest,<br>
but when singlehanedly coding 54 man years of code in just 8 years*, quick<br>
and ugly cut and paste often beats slower and elegant :-)<br>
<br>
<br>
*<a href="https://www.ohloh.net/p/lives" target="_blank">https://www.ohloh.net/p/lives</a> (estimate)<br>
<br>
<br>
Cheers,<br>
salsaman<br>
<a href="http://lives.sourceforge.net" target="_blank">http://lives.sourceforge.net</a><br>
<div><div></div><div class="h5"><br>
<br>
<br>
<br>
><br>
> Tet<br>
> --<br>
> Gllug mailing list - <a href="mailto:Gllug@gllug.org.uk">Gllug@gllug.org.uk</a><br>
> <a href="http://lists.gllug.org.uk/mailman/listinfo/gllug" target="_blank">http://lists.gllug.org.uk/mailman/listinfo/gllug</a><br>
><br>
><br>
<br>
<br>
--<br>
Gllug mailing list - <a href="mailto:Gllug@gllug.org.uk">Gllug@gllug.org.uk</a><br>
<a href="http://lists.gllug.org.uk/mailman/listinfo/gllug" target="_blank">http://lists.gllug.org.uk/mailman/listinfo/gllug</a><br>
</div></div></blockquote></div><br>