I need to call a function that generates much output. Because the function is pretty delicate, I cannot go in and edit it. In this scenario, is it possible for me to still suppress all its output?
I am expecting either to suppress it, something like
output off;
theFunctionThatPrintsOutput();
output on;
or to direct the output to a file, something like
theFunctionThatPrintsOutput() >> ./output.txt;