configuration - Octave :禁用 Octave 工作区崩溃文件

标签 configuration octave

当 Octave 崩溃时,我如何禁止它在工作目录中创建 octave-workspace 文件?

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

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

最佳答案

你要找的是crash_dumps_octave_core:

Query or set the internal variable that controls whether Octave tries to save all current variables to the file 'octave-workspace' if it crashes or receives a hangup, terminate or similar signal.

为了完整起见,这一系列函数(octave_core_file_limitoctave_core_file_nameoctave_core_file_options)的名称中带有“octave_core”的原因而不是“octave_workspace”,在旧版本中,文件的默认名称是“octave-workspace”。

你怎么能自己找到这个?

  1. 根据您的问题,您已经知道octave_core_file_options。如果您看到该功能帮助文本的底部,您会发现:

    See also: crash_dumps_octave_core, octave_core_file_name, octave_core_file_limit.

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

关于configuration - Octave :禁用 Octave 工作区崩溃文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33364537/

相关文章:

ubuntu - Octave:可以编译 mex,但出现错误: "failed to install .mex file function"

matlab - Softmax 回归的向量化实现

matlab - 如何使用 invfreqs 将低频拟合到 Octave 音阶?

linux - 如何在 Octave 中播放声音?

spring-boot - Spring Boot : apply @Configuration to certain package only

.net - ChannelFactory 在端点上没有地址,为什么?

tomcat - 在 URL 上隐藏 8080 并将流量从 80 重定向到 8080

matlab - 如何获取matlab数组中最大的元素索引

java - 工作区设置与项目特定设置

linux - 在主目录下以点开头的配置目录的术语?