Re: Is it possible to save a running program and reload next time ?

2006-09-22 Thread Peter Otten
[EMAIL PROTECTED] wrote: > Can the state of the random value generator be saved ? Yes. You can pickle random._inst or your own random.Random instance. Peter -- http://mail.python.org/mailman/listinfo/python-list

Re: Is it possible to save a running program and reload next time ?

2006-09-22 Thread [EMAIL PROTECTED]
Hans Georg Krauthaeuser wrote: > [EMAIL PROTECTED] wrote: > >> Hans Georg Krauthaeuser wrote: >> >>> [EMAIL PROTECTED] wrote: >>> >>> Can objects be saved and reloaded by "Pickle" ? I have tried but no success. >>> Yes, that's the intended u

Re: Is it possible to save a running program and reload next time ?

2006-09-21 Thread Hans Georg Krauthaeuser
[EMAIL PROTECTED] wrote: > Hans Georg Krauthaeuser wrote: >> [EMAIL PROTECTED] wrote: >> >>> Can objects be saved and reloaded by "Pickle" ? I have tried but no >>> success. >>> >>> >> Yes, that's the intended use of pickle/cPickle. There are examples in >> the docs: >> >> http://docs.pyth

Re: Is it possible to save a running program and reload next time ?

2006-09-21 Thread [EMAIL PROTECTED]
Hans Georg Krauthaeuser wrote: > [EMAIL PROTECTED] wrote: > >> Can objects be saved and reloaded by "Pickle" ? I have tried but no >> success. >> >> > Yes, that's the intended use of pickle/cPickle. There are examples in > the docs: > > http://docs.python.org/lib/module-pickle.html > > Wh

Re: Is it possible to save a running program and reload next time ?

2006-09-21 Thread Richard Tew
[EMAIL PROTECTED] wrote: > I have a program which will continue to run for several days. When it is > running, I can't do anything except waiting because it takes over most > of the CUP time. > > Is it possible that the program can save all running data to a file when > I want it to stop, and can r

Re: Is it possible to save a running program and reload next time ?

2006-09-21 Thread Hans Georg Krauthaeuser
[EMAIL PROTECTED] wrote: > > Can objects be saved and reloaded by "Pickle" ? I have tried but no > success. > Yes, that's the intended use of pickle/cPickle. There are examples in the docs: http://docs.python.org/lib/module-pickle.html What have you tried and what didn't work? Hans Georg --

Re: Is it possible to save a running program and reload next time ?

2006-09-21 Thread Larry Bates
[EMAIL PROTECTED] wrote: > Hi, > > I have a program which will continue to run for several days. When it is > running, I can't do anything except waiting because it takes over most > of the CUP time. > > Is it possible that the program can save all running data to a file when > I want it to stop,

Re: Is it possible to save a running program and reload next time ?

2006-09-21 Thread [EMAIL PROTECTED]
Dennis Lee Bieber wrote: > On Thu, 21 Sep 2006 15:34:21 +0800, "[EMAIL PROTECTED]" > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > >> Is it possible that the program can save all running data to a file when >> I want it to stop, and can reload the data and continue to run

Re: Is it possible to save a running program and reload next time ?

2006-09-21 Thread Duncan Booth
Jeremy Sanders <[EMAIL PROTECTED]> wrote: > For Linux (and other Unix like OSs), there are several "checkpointing" > libraries available which allow programs to be saved to disk, and > restarted later. > Another option which will work on just about anything would be to run the program in a vmwar

Re: Is it possible to save a running program and reload next time ?

2006-09-21 Thread Roland.Csaszar
On 2006-09-21, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Is it possible that the program can save all running data to a file when > I want it to stop, and can reload the data and continue to run from > where it stops when the computer is free ? Well, on Irix you could use cpr

Re: Is it possible to save a running program and reload next time ?

2006-09-21 Thread Jeremy Sanders
[EMAIL PROTECTED] wrote: > I have a program which will continue to run for several days. When it is > running, I can't do anything except waiting because it takes over most > of the CUP time. > > Is it possible that the program can save all running data to a file when > I want it to stop, and can

Re: Is it possible to save a running program and reload next time ?

2006-09-21 Thread MonkeeSage
[EMAIL PROTECTED] wrote: > Is it possible that the program can save all running data to a file when > I want it to stop, and can reload the data and continue to run from > where it stops when the computer is free ? This isn't what you asked for (I have no idea how to do that), but given your descr

Re: Is it possible to save a running program and reload next time ?

2006-09-21 Thread Iain King
[EMAIL PROTECTED] wrote: > Hi, > > I have a program which will continue to run for several days. When it is > running, I can't do anything except waiting because it takes over most > of the CUP time. > > Is it possible that the program can save all running data to a file when > I want it to stop,

Is it possible to save a running program and reload next time ?

2006-09-21 Thread [EMAIL PROTECTED]
Hi, I have a program which will continue to run for several days. When it is running, I can't do anything except waiting because it takes over most of the CUP time. Is it possible that the program can save all running data to a file when I want it to stop, and can reload the data and continue