deno command stdin, stdout continous reading
I am trying to spawn an AI (cpp code) however after launching the code it immediately exits. It also isn't providing any stdout either.
relevant code:
2 Replies
If I replace config.EXE with "echo" the Deno code behaves correctly and prints stdout. Also tried a mock bash script too so the issue seems to be with that exe. Have you tried printing result.stderr to see if the exe is outputting any error messages?
The issue for me was that the program wasn't persistent and it ended immediately. Even when I hard coded it.
I got reading the stream to work.
And used this:
W/e the issue was. Katago doesn't exit immediately