Re: Save everything
- To: mathgroup at smc.vnet.net
- Subject: [mg61591] Re: Save everything
- From: David Bailey <dave at Remove_Thisdbailey.co.uk>
- Date: Sun, 23 Oct 2005 05:45:54 -0400 (EDT)
- References: <djcglh$6hh$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Detlef Müller wrote:
> Hello,
>
> In Mathematica 5.1 I have a notebook, and after some long during
> calculations, I want to save the State of the Kernel.
>
> This means, later, I want to do Load["everything.dat"] and
> work on.
>
> The Help says:
>
> Save["filename", "form"] appends definitions associated with all
> symbols whose names match the string pattern form.
>
> But
> Save["everything.dat","_"]
>
> leads to a file everything.dat with Content
>
> Attributes[Blank] = {Protected}
>
> wich of course doesn't contain the Information for
> Restauration.
>
> Trying to save every context (as I want the
> data from loaded packages stored too, Global`
> was not enough) leads to
>
> DumpSave["everything.dat","_`"]
> List::cxt: Invalid context specified at position 1 in {_`}.
> A context must consist of valid symbol names separated by and
> ending with `.
>
> So how to save the whole status?
>
> Greetings
> Detlef
>
Hello,
DumpSave is a very ancient bit of Mathematica, and I would be a bit wary
of using it to save valuable data. Such data would certainly not survive
a software upgrade. I would dump your results explicitly and then read
them back (together with the various packages) when you want to resume.
David Bailey
http://www.dbaileyconsultancy.co.uk