Let’s say I have n external program which reads input from stdin and writes it to stdout.
What would be the easiest way to feed the given string to the program and get the result back? I think I can open the
cmd for reading and writing, and then spawn two tasks, as documented in https://docs.julialang.org/en/v1/manual/running-external-programs/#Avoiding-Deadlock-in-Pipelines.
But this seems very low-level. I wonder if there’s an easier API which lets me specify stdin contents and get stdout contents back with one call, which would manage required concurrency internally?