My question is regarding the node spawn interface... I was under the impression that you could use the stdio field of the option argument to give yourself a way to redirect data to/from a child process (e.g [Readable -> child.stdin, child.stdout -> Writeable Stream, child.stderr -> Writeable stream]
)
My question is why can I not provide a writeable stream as the second index in the array I am passing for this field. When I do I get the error: "TypeError: Incorrect value for stdio stream: [object Object]"
why does this work??
var spawn = require("child_process").spawn;
var args = "-F --lines=0 /Users/choover/workspace/sandbox/forwarding-agent/test/test.log"