octave:禁用octave-workspace崩溃文件

时间:2015-10-27 09:47:29

标签: configuration octave

如何在崩溃时禁用Octave在工作目录中创建八度工作区文件?

我在octave_core_file_options()中看不到任何禁用它的选项。这可能吗?也许通过在终止时自动删除文件的黑客攻击? (问题是.octaverc在开始时运行)

相关(但不重复):Hide octave-workspace file from home directory

1 个答案:

答案 0 :(得分:1)

您要找的是crash_dumps_octave_core

  

查询或设置内部变量,该变量控制Octave是否尝试将所有当前变量保存到文件'octave-workspace',如果它崩溃或收到挂起,终止或类似信号。

为了完整起见,这个函数族(octave_core_file_limitoctave_core_file_nameoctave_core_file_options)在名称上使用“octave_core”而不是“octave_workspace”的原因是旧版本文件的默认名称是“octave-workspace”。

你怎么能自己找到这个?

  1. 从您的问题中,您已经了解octave_core_file_options。如果您看到该功能帮助文本的底部,您会发现:
      

    参见:crash_dumps_octave_core,octave_core_file_name,octave_core_file_limit。

  2. 通过调用doc octave_core
  3. 查看有关此功能的手册部分
  4. 您可以使用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.