Hi,
I’m trying to write a small script to setup simulations in a cluster. These take a while to compute, and while doing so provide useful output informing of the state of the simulation. For that purpose, when using bash, I’d run this as:
./rn | tee out.txt
where rn
runs the simulations itself. Doing this gives me all the output in stdout, which is useful as the queuing system captures it and I can use it to evaluate the state of simulations during runtime. But I also want all that output to be saved together with the rest of the simulation output, which is why I use tee
in here. In julia I could do:
run(pipeline(`./rn`, "out.txt"))
but that will silence everything coming to stdout. So is there a way to do both using run(pipeline(...))
?