On Thu, Sep 20, 2012 at 4:07 PM, dhruvbird <[email protected]> wrote: > Hello, > > So, I'm still trying to understand the implications of this change. Suppose > I spawn "cat" and write to the stdin of the spawned process, then will the > "cat" process not be able to read it? > > var cat = spawn('cat'); > cat.stdin.write('Foo Bar'); > cat.stdout.on('data', function(d) { console.log("Child Says:", String(d); > }); > > Will this do what I expect it to?
Yes. It's only when the child process explicitly opens /dev/stdin (or /dev/stdout) that it doesn't work. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
