如何在崩溃时禁用Octave在工作目录中创建八度工作区文件?
我在octave_core_file_options()中看不到任何禁用它的选项。这可能吗?也许通过在终止时自动删除文件的黑客攻击? (问题是.octaverc在开始时运行)
答案 0 :(得分:1)
您要找的是crash_dumps_octave_core
:
查询或设置内部变量,该变量控制Octave是否尝试将所有当前变量保存到文件'octave-workspace',如果它崩溃或收到挂起,终止或类似信号。
为了完整起见,这个函数族(octave_core_file_limit
,octave_core_file_name
和octave_core_file_options
)在名称上使用“octave_core”而不是“octave_workspace”的原因是旧版本文件的默认名称是“octave-workspace”。
你怎么能自己找到这个?
octave_core_file_options
。如果您看到该功能帮助文本的底部,您会发现:
参见:crash_dumps_octave_core,octave_core_file_name,octave_core_file_limit。
doc octave_core
您可以使用lookfor
命令搜索功能:
octave> lookfor octave_core
crash_dumps_octave_core Query or set the internal variable that controls whethe
r Octave tries to save all current variables to the file '
'octave-workspace' if it crashes or receives a hangup, ter
rminate or similar signal.
octave_core_file_limit Query or set the internal variable that specifies the ma
ximum amount of memory (in kilobytes) of the top-level wor
rkspace that Octave will attempt to save when writing data
a to the crash dump file (the name of the file is specifie
ed by OCTAVE_CORE_FILE_NAME).
octave_core_file_name Query or set the internal variable that specifies the nam
e of the file used for saving data from the top-level work
kspace if Octave aborts.
octave_core_file_options Query or set the internal variable that specifies the
options used for saving the workspace data if Octave abort
ts.
sighup_dumps_octave_core Query or set the internal variable that controls wheth
er Octave tries to save all current variables to the file
'octave-workspace' if it receives a hangup signal.
sigterm_dumps_octave_core Query or set the internal variable that controls whet
her Octave tries to save all current variables to the file
e 'octave-workspace' if it receives a terminate signal.