Hello,
I am spawnning a java App (REPL for querying a local DB) using:
repl = = require('child_process').spawn('java', ['-cp', '...list of
libs...', ,{ cwd: '...path to env...', env: process.env, customFds: [-1,
-1, -1] });
The REPL loads fine because I can seen its outputs in stdout, but
stdin.write commands don't go throught. I can however write directly to it
from the console window I am running the node app from.
I have printed out the stdin of the spawned process, it looks like this:
{ _handle:
{ writeQueueSize: 0,
socket: [Circular],
onread: [Function: onread] },
_pendingWriteReqs: 0,
_flags: 0,
_connectQueueSize: 0,
destroyed: false,
bytesRead: 0,
bytesWritten: 0,
allowHalfOpen: undefined,
writable: true,
readable: false }
It seems there is no 'fd' defined. How can this be resolved?
(this is all on a windows machine)
Thanks
Jack
--
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