[ale] [OT] how do I monitor the "weather" in my computer room

Michael Trausch mbt at naunetcorp.com
Fri Jun 7 08:24:26 EDT 2013


Of course remember that such atomic semantics are only ensured when moving
a file and when both the source and destination are on the same file
system.
On Jun 7, 2013 8:20 AM, "Phil Turmel" <philip at turmel.org> wrote:

> On 06/07/2013 01:48 AM, Alex Carver wrote:
> >> D) Sometimes, if I happen to retrieve the file while it's being written,
> >> I get an incomplete result.
> >
> > This would be an expected flaw in the implementation with almost any web
> > server.  You would have to create a temporary file first, then at the
> > last moment copy the temporary file to the permanent location (since the
> > copy will be fast versus the writing of several command outputs).  The
> > only true way to avoid this is with CGI scripting to execute the script
> > at time of request.
>
> Short of CGI, the canonical way to handle this is to *rename* a
> temporary file over the normal file.  The linux kernel will guarantee
> that other processes will see either old or new in their entirety.
>
> Phil
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20130607/8ab3ef87/attachment-0001.html>


More information about the Ale mailing list