bash 如何告诉 gnuplot 不要在屏幕上打印适合的日志?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12843423/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 03:31:28  来源:igfitidea点击:

How to tell gnuplot not to print fit log on screen?

bashgnuplot

提问by Ferdinando Randisi

I'm writing a bash script that, among several more things, calls gnuplot to fit a few data files. When it does so my terminal gets flooded with the gnuplot fit log.

我正在编写一个 bash 脚本,其中包括调用 gnuplot 以适应一些数据文件。当它这样做时,我的终端会被 gnuplot 拟合日志淹没。

I do not want that, I'd like that gnuplot just kept the fit log to the file 'fit.log', rather than printing it on screen. But I can't find a gnuplot command to prevent the fit log file from being printed on terminal.

我不希望那样,我希望 gnuplot 只是将适合日志保存到文件“fit.log”中,而不是将其打印在屏幕上。但是我找不到 gnuplot 命令来防止在终端上打印适合的日志文件。

How can I redirect all gnuplot text output to a file because I would like to know just by looking at the terminal whether it returned any errors.

我怎样才能将所有 gnuplot 文本输出重定向到一个文件,因为我只想通过查看终端来知道它是否返回了任何错误。

回答by andyras

The option you want is

你想要的选项是

set fit quiet

This will still make the fit.logfile. If you don't want to create the file either, you can

这仍然会生成fit.log文件。如果你也不想创建文件,你可以

set fit logfile '/dev/null'