in my program I have to work with a Node.js script. The script has to be executed. Itself writes some data into a data base and prints some data to
stdout and some information to
stderr. In order to start the script I use:
let child = Command::new(node) .arg("my_script.js") .stdout(Stdio::piped()) .stderr(Stdio::inherit()) .spawn()?;
The problem is that node doesn't seem to start. No data is writen into the data base nor do I receive bytes at
child.stdout nor do I see some output on the console. However the node process is still running. If I launch normal binaries everythings works fine, so this seems to be related to node.js but I have no experience with it.
Has anyone an idea what I do wrong?