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
ttyto get a file name I can pipe results to
- Use some combination of
open("...terminal name", "w")and
redirect_stdoutto pipe all output from my julia window to the open window. (Or figure out how to set the global variable
stdoutto 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?