> > (The motivation is the following: Again and again we are losing
> > computations which already run for hours/days because of for
> > example a laptop-crash when running remotely. The (Linux-)program
> > screen unfortunately doesn't help --- again and again the connection
> > is completely lost, no possibility to reconnect, while actually Maxima
> > is still running. These computations most of the time emerge in an interactive
> > session, so batchmode would be very inconvenient. If writefile would work,
> > then this would solve the problem (and it could be automated, always on
> > startup logging to a file with the timestamp in the name).)
>
> To be honest, your description seems odd. Do you mean that you are
> unable to re-attach to your screen session? Do you try screen -R -D? If
> your screen session has died, all its children should be dead, too. It
> would be helpful to know exactly what you are doing to try to reattach
> to screen.
>
I start and re-attach with the same command, namely
ssh -t user at computer /usr/bin/screen -xRR
It happened several times, but such things are not reconstructible.
Perhaps the sessions were not detached, and then screen could not
handle the sudden death of the connection(?).
Now I always detach (via Ctrl-a-d), don't leave connections open,
and until now there were no further problems. So let's hope that
solved the problem.
Nevertheless, having a logging facility (which we would then always
enable by default), would be great.
> Anyhow, here are a few suggestions:
>
> 1. Start emacs in server mode (emacs --daemon), use emacsclient to
> attach to the emacs session, and run maxima inside emacs.
> 2. Start a swank server in maxima (as Michel Talon suggested),
> run your code, and you can re-attach to the maxima process through
> slime.
> 3. Run maxima inside emacs inside screen.
> 4. do some combination of 1--3.
>
> Personally, I do 1 + 3 on a day-to-day basis and I can't recall when I
> last had a problem reattaching to screen.
>
I use xemacs, but only as text-editor, and otherwise I prefer konsole-windows.
Hoping that by consistently detaching and re-attaching the screen-problems
are gone, just using screen hopefully suffices.
But a student in my group uses (x)emacs in such a way, and perhaps
he can use this tip.
Thanks for your help.
Oliver