~gabriel1984sibiu/octave/octave

« back to all changes in this revision

Viewing changes to doc/interpreter/octave.html/Saving-Data-on-Unexpected-Exits.html

  • Committer: Grevutiu Gabriel
  • Date: 2014-01-02 13:05:54 UTC
  • Revision ID: gabriel1984sibiu@gmail.com-20140102130554-3r7ivdjln1ni6kcg
New version (3.8.0) from upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
2
<html>
 
3
<!-- Created by GNU Texinfo 5.2, http://www.gnu.org/software/texinfo/ -->
 
4
<head>
 
5
<title>GNU Octave: Saving Data on Unexpected Exits</title>
 
6
 
 
7
<meta name="description" content="GNU Octave: Saving Data on Unexpected Exits">
 
8
<meta name="keywords" content="GNU Octave: Saving Data on Unexpected Exits">
 
9
<meta name="resource-type" content="document">
 
10
<meta name="distribution" content="global">
 
11
<meta name="Generator" content="makeinfo">
 
12
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 
13
<link href="index.html#Top" rel="start" title="Top">
 
14
<link href="Concept-Index.html#Concept-Index" rel="index" title="Concept Index">
 
15
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
 
16
<link href="Simple-File-I_002fO.html#Simple-File-I_002fO" rel="up" title="Simple File I/O">
 
17
<link href="C_002dStyle-I_002fO-Functions.html#C_002dStyle-I_002fO-Functions" rel="next" title="C-Style I/O Functions">
 
18
<link href="Simple-File-I_002fO.html#Simple-File-I_002fO" rel="prev" title="Simple File I/O">
 
19
<style type="text/css">
 
20
<!--
 
21
a.summary-letter {text-decoration: none}
 
22
blockquote.smallquotation {font-size: smaller}
 
23
div.display {margin-left: 3.2em}
 
24
div.example {margin-left: 3.2em}
 
25
div.indentedblock {margin-left: 3.2em}
 
26
div.lisp {margin-left: 3.2em}
 
27
div.smalldisplay {margin-left: 3.2em}
 
28
div.smallexample {margin-left: 3.2em}
 
29
div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
 
30
div.smalllisp {margin-left: 3.2em}
 
31
kbd {font-style:oblique}
 
32
pre.display {font-family: inherit}
 
33
pre.format {font-family: inherit}
 
34
pre.menu-comment {font-family: serif}
 
35
pre.menu-preformatted {font-family: serif}
 
36
pre.smalldisplay {font-family: inherit; font-size: smaller}
 
37
pre.smallexample {font-size: smaller}
 
38
pre.smallformat {font-family: inherit; font-size: smaller}
 
39
pre.smalllisp {font-size: smaller}
 
40
span.nocodebreak {white-space:nowrap}
 
41
span.nolinebreak {white-space:nowrap}
 
42
span.roman {font-family:serif; font-weight:normal}
 
43
span.sansserif {font-family:sans-serif; font-weight:normal}
 
44
ul.no-bullet {list-style: none}
 
45
-->
 
46
</style>
 
47
 
 
48
 
 
49
</head>
 
50
 
 
51
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
 
52
<a name="Saving-Data-on-Unexpected-Exits"></a>
 
53
<div class="header">
 
54
<p>
 
55
Up: <a href="Simple-File-I_002fO.html#Simple-File-I_002fO" accesskey="u" rel="up">Simple File I/O</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html#Concept-Index" title="Index" rel="index">Index</a>]</p>
 
56
</div>
 
57
<hr>
 
58
<a name="Saving-Data-on-Unexpected-Exits-1"></a>
 
59
<h4 class="subsubsection">14.1.3.1 Saving Data on Unexpected Exits</h4>
 
60
 
 
61
<p>If Octave for some reason exits unexpectedly it will by default save the
 
62
variables available in the workspace to a file in the current directory.
 
63
By default this file is named &lsquo;<samp>octave-workspace</samp>&rsquo; and can be loaded
 
64
into memory with the <code>load</code> command.  While the default behavior
 
65
most often is reasonable it can be changed through the following
 
66
functions.
 
67
</p>
 
68
<a name="XREFcrash_005fdumps_005foctave_005fcore"></a><dl>
 
69
<dt><a name="index-crash_005fdumps_005foctave_005fcore"></a>Built-in Function: <em><var>val</var> =</em> <strong>crash_dumps_octave_core</strong> <em>()</em></dt>
 
70
<dt><a name="index-crash_005fdumps_005foctave_005fcore-1"></a>Built-in Function: <em><var>old_val</var> =</em> <strong>crash_dumps_octave_core</strong> <em>(<var>new_val</var>)</em></dt>
 
71
<dt><a name="index-crash_005fdumps_005foctave_005fcore-2"></a>Built-in Function: <em></em> <strong>crash_dumps_octave_core</strong> <em>(<var>new_val</var>, &quot;local&quot;)</em></dt>
 
72
<dd><p>Query or set the internal variable that controls whether Octave tries
 
73
to save all current variables to the file <samp>octave-workspace</samp> if it
 
74
crashes or receives a hangup, terminate or similar signal.
 
75
</p>
 
76
<p>When called from inside a function with the <code>&quot;local&quot;</code> option, the
 
77
variable is changed locally for the function and any subroutines it calls.  
 
78
The original variable value is restored when exiting the function.
 
79
</p>
 
80
<p><strong>See also:</strong> <a href="#XREFoctave_005fcore_005ffile_005flimit">octave_core_file_limit</a>, <a href="#XREFoctave_005fcore_005ffile_005fname">octave_core_file_name</a>, <a href="#XREFoctave_005fcore_005ffile_005foptions">octave_core_file_options</a>.
 
81
</p></dd></dl>
 
82
 
 
83
 
 
84
<a name="XREFsighup_005fdumps_005foctave_005fcore"></a><dl>
 
85
<dt><a name="index-sighup_005fdumps_005foctave_005fcore"></a>Built-in Function: <em><var>val</var> =</em> <strong>sighup_dumps_octave_core</strong> <em>()</em></dt>
 
86
<dt><a name="index-sighup_005fdumps_005foctave_005fcore-1"></a>Built-in Function: <em><var>old_val</var> =</em> <strong>sighup_dumps_octave_core</strong> <em>(<var>new_val</var>)</em></dt>
 
87
<dt><a name="index-sighup_005fdumps_005foctave_005fcore-2"></a>Built-in Function: <em></em> <strong>sighup_dumps_octave_core</strong> <em>(<var>new_val</var>, &quot;local&quot;)</em></dt>
 
88
<dd><p>Query or set the internal variable that controls whether Octave tries
 
89
to save all current variables to the file <samp>octave-workspace</samp> if it
 
90
receives a hangup signal.
 
91
</p>
 
92
<p>When called from inside a function with the <code>&quot;local&quot;</code> option, the
 
93
variable is changed locally for the function and any subroutines it calls.  
 
94
The original variable value is restored when exiting the function.
 
95
</p></dd></dl>
 
96
 
 
97
 
 
98
<a name="XREFsigterm_005fdumps_005foctave_005fcore"></a><dl>
 
99
<dt><a name="index-sigterm_005fdumps_005foctave_005fcore"></a>Built-in Function: <em><var>val</var> =</em> <strong>sigterm_dumps_octave_core</strong> <em>()</em></dt>
 
100
<dt><a name="index-sigterm_005fdumps_005foctave_005fcore-1"></a>Built-in Function: <em><var>old_val</var> =</em> <strong>sigterm_dumps_octave_core</strong> <em>(<var>new_val</var>)</em></dt>
 
101
<dt><a name="index-sigterm_005fdumps_005foctave_005fcore-2"></a>Built-in Function: <em></em> <strong>sigterm_dumps_octave_core</strong> <em>(<var>new_val</var>, &quot;local&quot;)</em></dt>
 
102
<dd><p>Query or set the internal variable that controls whether Octave tries
 
103
to save all current variables to the file <samp>octave-workspace</samp> if it
 
104
receives a terminate signal.
 
105
</p>
 
106
<p>When called from inside a function with the <code>&quot;local&quot;</code> option, the
 
107
variable is changed locally for the function and any subroutines it calls.  
 
108
The original variable value is restored when exiting the function.
 
109
</p></dd></dl>
 
110
 
 
111
 
 
112
<a name="XREFoctave_005fcore_005ffile_005foptions"></a><dl>
 
113
<dt><a name="index-octave_005fcore_005ffile_005foptions"></a>Built-in Function: <em><var>val</var> =</em> <strong>octave_core_file_options</strong> <em>()</em></dt>
 
114
<dt><a name="index-octave_005fcore_005ffile_005foptions-1"></a>Built-in Function: <em><var>old_val</var> =</em> <strong>octave_core_file_options</strong> <em>(<var>new_val</var>)</em></dt>
 
115
<dt><a name="index-octave_005fcore_005ffile_005foptions-2"></a>Built-in Function: <em></em> <strong>octave_core_file_options</strong> <em>(<var>new_val</var>, &quot;local&quot;)</em></dt>
 
116
<dd><p>Query or set the internal variable that specifies the options used for
 
117
saving the workspace data if Octave aborts.  The value of
 
118
<code>octave_core_file_options</code> should follow the same format as the
 
119
options for the <code>save</code> function.  The default value is Octave&rsquo;s binary
 
120
format.
 
121
</p>
 
122
<p>When called from inside a function with the <code>&quot;local&quot;</code> option, the
 
123
variable is changed locally for the function and any subroutines it calls.  
 
124
The original variable value is restored when exiting the function.
 
125
</p>
 
126
<p><strong>See also:</strong> <a href="#XREFcrash_005fdumps_005foctave_005fcore">crash_dumps_octave_core</a>, <a href="#XREFoctave_005fcore_005ffile_005fname">octave_core_file_name</a>, <a href="#XREFoctave_005fcore_005ffile_005flimit">octave_core_file_limit</a>.
 
127
</p></dd></dl>
 
128
 
 
129
 
 
130
<a name="XREFoctave_005fcore_005ffile_005flimit"></a><dl>
 
131
<dt><a name="index-octave_005fcore_005ffile_005flimit"></a>Built-in Function: <em><var>val</var> =</em> <strong>octave_core_file_limit</strong> <em>()</em></dt>
 
132
<dt><a name="index-octave_005fcore_005ffile_005flimit-1"></a>Built-in Function: <em><var>old_val</var> =</em> <strong>octave_core_file_limit</strong> <em>(<var>new_val</var>)</em></dt>
 
133
<dt><a name="index-octave_005fcore_005ffile_005flimit-2"></a>Built-in Function: <em></em> <strong>octave_core_file_limit</strong> <em>(<var>new_val</var>, &quot;local&quot;)</em></dt>
 
134
<dd><p>Query or set the internal variable that specifies the maximum amount
 
135
of memory (in kilobytes) of the top-level workspace that Octave will
 
136
attempt to save when writing data to the crash dump file (the name of
 
137
the file is specified by <var>octave_core_file_name</var>).  If
 
138
<var>octave_core_file_options</var> flags specify a binary format,
 
139
then <var>octave_core_file_limit</var> will be approximately the maximum
 
140
size of the file.  If a text file format is used, then the file could
 
141
be much larger than the limit.  The default value is -1 (unlimited)
 
142
</p>
 
143
<p>When called from inside a function with the <code>&quot;local&quot;</code> option, the
 
144
variable is changed locally for the function and any subroutines it calls.  
 
145
The original variable value is restored when exiting the function.
 
146
</p>
 
147
<p><strong>See also:</strong> <a href="#XREFcrash_005fdumps_005foctave_005fcore">crash_dumps_octave_core</a>, <a href="#XREFoctave_005fcore_005ffile_005fname">octave_core_file_name</a>, <a href="#XREFoctave_005fcore_005ffile_005foptions">octave_core_file_options</a>.
 
148
</p></dd></dl>
 
149
 
 
150
 
 
151
<a name="XREFoctave_005fcore_005ffile_005fname"></a><dl>
 
152
<dt><a name="index-octave_005fcore_005ffile_005fname"></a>Built-in Function: <em><var>val</var> =</em> <strong>octave_core_file_name</strong> <em>()</em></dt>
 
153
<dt><a name="index-octave_005fcore_005ffile_005fname-1"></a>Built-in Function: <em><var>old_val</var> =</em> <strong>octave_core_file_name</strong> <em>(<var>new_val</var>)</em></dt>
 
154
<dt><a name="index-octave_005fcore_005ffile_005fname-2"></a>Built-in Function: <em></em> <strong>octave_core_file_name</strong> <em>(<var>new_val</var>, &quot;local&quot;)</em></dt>
 
155
<dd><p>Query or set the internal variable that specifies the name of the file
 
156
used for saving data from the top-level workspace if Octave aborts.
 
157
The default value is <code>&quot;octave-workspace&quot;</code>
 
158
</p>
 
159
<p>When called from inside a function with the <code>&quot;local&quot;</code> option, the
 
160
variable is changed locally for the function and any subroutines it calls.  
 
161
The original variable value is restored when exiting the function.
 
162
</p>
 
163
<p><strong>See also:</strong> <a href="#XREFcrash_005fdumps_005foctave_005fcore">crash_dumps_octave_core</a>, <a href="#XREFoctave_005fcore_005ffile_005fname">octave_core_file_name</a>, <a href="#XREFoctave_005fcore_005ffile_005foptions">octave_core_file_options</a>.
 
164
</p></dd></dl>
 
165
 
 
166
 
 
167
<hr>
 
168
<div class="header">
 
169
<p>
 
170
Up: <a href="Simple-File-I_002fO.html#Simple-File-I_002fO" accesskey="u" rel="up">Simple File I/O</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html#Concept-Index" title="Index" rel="index">Index</a>]</p>
 
171
</div>
 
172
 
 
173
 
 
174
 
 
175
</body>
 
176
</html>