[PLUG] flushing buffers?

Larry Brigman larry.brigman at gmail.com
Thu Jan 6 18:00:42 UTC 2011


On Thu, Jan 6, 2011 at 9:56 AM, Denis Heidtmann
<denis.heidtmann at gmail.com> wrote:
> I am writing a little script to record the battery voltage v.s. time.  I
> want to run it until the system shuts down due to low voltage.  Is it
> reasonable to expect that the system will write the file buffer to the disk
> prior to shutdown?  If not, what is a reasonable way to handle the problem?
>  The system is ubuntu 10.04, the hardware is an ASU eee pc 900.

If the system does it's own monitoring to do the shutdown then you
will need a signal
handler to catch the shutdown and/or term signal to go record record a
reading and flush your buffers.



More information about the PLUG mailing list