help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Command to save command history


From: marco atzeri
Subject: Re: Command to save command history
Date: Mon, 27 Jul 2020 13:12:06 +0200

On Mon, Jul 27, 2020 at 12:59 PM Ian McCallion wrote:
>
> Is there an Octave command to save the command history?.History is
> saved when Octave terminates normally, but all history accumulated
> since the last startup is lost if Octave crashes or is killed.
>
> The reason for asking is that Octave 5.2.0 on windows crashes
> frequently, especially when using plotting. During development it is
> easily possible to request plots that go into a loop and hang. Ctrl-C
> is ineffective at that point and the only solution is to use the task
> manager to kill Octave and restart it.
>
> I can put up with having to restart Octave occasionally, but it is a
> real pain to lose the history and have to reopen all the files that
> were open in the editor.
>
> A command to save history (and list of open files) would save a lot of
> frustration.
>
> Cheers... Ian
>
Hi Ian,
you can use diary
https://octave.org/doc/v5.2.0/Diary-and-Echo-Commands.html#Diary-and-Echo-Commands



reply via email to

[Prev in Thread] Current Thread [Next in Thread]