Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个 bash 脚本,其中包括其他几件事,它调用 gnuplot 来适应一些数据文件。当它这样做时,我的终端会被 gnuplot fit 日志淹没。
我不希望那样,我希望 gnuplot 只是将 fit 日志保存到文件“fit.log”中,而不是在屏幕上打印它。但我找不到 gnuplot 命令来阻止在终端上打印拟合日志文件。
如何将所有 gnuplot 文本输出重定向到文件,因为我想通过查看终端来知道它是否返回任何错误。
你想要的选项是
set fit quiet
这仍然会生成fit.log文件。如果您也不想创建文件,您可以
fit.log
set fit logfile '/dev/null'