I have managed to confuse myself but I am sure there is a simple answer.
I have a c++ script I can call this in the terminal with:
./script $InputFile > $OutputFilePathAndName
With the terminal printing the stdout but also saving the c++ programs results to the file described in OutputFilePathAndName
In Julia if I write something like:
The file OutputFilePathAndName never writes? In a simple terminal this writes correctly but not using Julia ‘run’ or Julias shell.
In windows I got around this using:
No, I thought this might be too and tried this earlier. This just returns the terminal output in the text file, not the output from the program. I run this as so:
I think you don’t need the sort or the second pipeline here, that is just from the example in the documentation. I also assume that OutputFilePathAndName is a string so "$OutputFilePathAndName" == OutputFilePathAndName
But I’m a little confused. If you call just the program from the shell, isn’t all output shown there? If so, the stdout parameter should catch that. If not, where is it going instead? What is the difference between “terminal output” and “output from the program”?