I am having trouble with the function redirect_stdout
. I would like to do the following on my mac
- Open up a terminal window with julia
- Open up a second terminal and run
tty
to get a file name I can pipe results to - Use some combination of
open("...terminal name", "w")
andredirect_stdout
to pipe all output from my julia window to the open window. (Or figure out how to set the global variablestdout
to this new file).
This is for repl usage, not any particular function.
I can’t seem to do it. redirect_stdout(io)
doesn’t seem to do anything for the repl. Can anyone help me out?