21

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.

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.

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.

1 Answer 1

35

The option you want is

set fit quiet

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

set fit logfile '/dev/null'
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.