gpt4 book ai didi

linux - 从 cron 使用 GUI 启动 Octave

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:10:08 24 4
gpt4 key购买 nike

我想使用 cronjob 通过 force-gui 选项打开 Octave。

写作

00 22 * * * octave --force-gui > ~/log 2>&1

不开始 Octave 但给出日志消息

octave: unrecognized option '--force-gui'

usage: octave [-HVdfhiqvx] [--debug] [--echo-commands] [--eval CODE]
[--exec-path path] [--help] [--image-path path] [--info-file file]
[--info-program prog] [--interactive] [--line-editing]
[--no-history] [--no-init-file] [--no-init-path] [--no-line-editing]
[--no-site-file] [--no-window-system] [-p path] [--path path]
[--silent] [--traditional] [--verbose] [--version] [file]

当我进入

octave --force-gui

直接在终端中,octave 打开就好了。

我注意到当我进入时产生了与日志文件中相同的错误

/usr/bin/octave --force-gui

进入终端。

Question: How can I start the octave GUI via Cron?

我在 Linux Mint 16 上使用 Octave 版本 3.8.1。

最佳答案

听起来您安装了两个不同版本的 Octave。一个在 /usr/bin/octave 中(没有 --force-gui 选项的旧版本),一个在你的路径中但不在路径中的新版本当 cron 运行时。

键入 which octave 以查看您要运行的 Octave 版本在哪里并修复您的路径。您可能还想卸载旧版本的 Octave。

关于linux - 从 cron 使用 GUI 启动 Octave,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28132210/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com