On Wed, 09 Aug 2006 16:13:19 + (GMT)
John Pote <[EMAIL PROTECTED]> wrote:
#> Is there some way from my Python script to know when the data is actually on
#> the disk. BTW server OS is Linux. Presumably calling flush() and close() on
#> the output file will initiate the disk write, but do the
Thanks for the replies. I guessed the situation would be flush() and trust.
The probability of a crash between flush() returning and data actually
written resulting in a trashed disk must be very small. But if you can be
certain without too much effort it's got to be a good idea, so I thought I'
John Pote:
> Is there some way from my Python script to know when the data is actually on
> the disk. BTW server OS is Linux. Presumably calling flush() and close() on
> the output file will initiate the disk write, but do they wait for the
> actual disk write or immediately return leaving the
John Pote wrote:
> Is there some way from my Python script to know when the data is actually on
> the disk. BTW server OS is Linux. Presumably calling flush() and close() on
> the output file will initiate the disk write, but do they wait for the
> actual disk write or immediately return leaving th
Hello,
I'm using a Python CGI script on a web server to log data from a remote site
every few minutes. I do not want to lose any data for whatever rare reason -
power outage/os crash just at the wrong moment etc. So I would like to know
when the data is actually written to disk and the file clo