Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #79977 > unrolled thread

Re: Saving a file "in the background" -- How?

Started byJoel Goldstick <joel.goldstick@gmail.com>
First post2014-10-30 18:21 -0400
Last post2014-10-30 18:21 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Saving a file "in the background" -- How? Joel Goldstick <joel.goldstick@gmail.com> - 2014-10-30 18:21 -0400

#79977 — Re: Saving a file "in the background" -- How?

FromJoel Goldstick <joel.goldstick@gmail.com>
Date2014-10-30 18:21 -0400
SubjectRe: Saving a file "in the background" -- How?
Message-ID<mailman.15334.1414707690.18130.python-list@python.org>
On Thu, Oct 30, 2014 at 5:30 PM, Virgil Stokes <vs@it.uu.se> wrote:
> While running a python program I need to save some of the data that is being
> created. I would like to save the data to a file on a disk according to a
> periodical schedule  (e.g. every 10 minutes). Initially, the amount of data
> is small (< 1 MB) but after sometime the amount of data can be >10MB. If a
> problem occurs during data creation, then the user should be able to start
> over from the last successfully saved data.
>
> For my particular application, no other file is being saved and the data
> should always replace (not be appended to) the previous data saved. It is
> important that  the data be saved without any obvious distraction to the
> user who is busy creating more data. That is, I would like to save the data
> "in the background".
>
> What is a good method to perform this task using Python 2.7.8 on a Win32
> platform?
> --
> https://mail.python.org/mailman/listinfo/python-list

I've not tried this, but stackoverflow has a solution that looks like
it could work for you:
http://stackoverflow.com/questions/16214736/write-data-to-disk-in-python-as-a-background-process

-- 
Joel Goldstick
http://joelgoldstick.com

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web