Is there a way to talk to native processes?

6 views
Skip to first unread message

alen....@gmail.com

unread,
May 11, 2013, 6:10:42 PM5/11/13
to node-...@googlegroups.com
Can I pack, run, and talk to my own bash scripts, jar files, have access to stdin, stderr, stdout, etc.?

Chris Turnbull

unread,
May 11, 2013, 7:30:04 PM5/11/13
to node-...@googlegroups.com, alen....@gmail.com
Can you use exec?

E.g.

var exec = require('child_process').exec;
exec('your program', {}, function(err,stdout,stderr) {
console.log(err);
console.log(stdout);
console.log(stderr);
});

Mike Parsons

unread,
May 12, 2013, 6:47:18 AM5/12/13
to node-...@googlegroups.com, alen....@gmail.com
Create a node module in C++ ... this will allow you do anything you want.

alen....@gmail.com

unread,
May 12, 2013, 9:07:22 PM5/12/13
to node-...@googlegroups.com, alen....@gmail.com
Are you referring to this? https://github.com/rogerwang/nw-gyp. It has to be C++?

alen....@gmail.com

unread,
May 12, 2013, 9:08:52 PM5/12/13
to node-...@googlegroups.com, alen....@gmail.com
Thanks Chris, is there an API documentation for this. I'm having trouble finding it on github wiki. 

Chaobin Zhang

unread,
May 12, 2013, 9:45:47 PM5/12/13
to node-...@googlegroups.com
Hi

Chris is talking about the native API for node.js: http://nodejs.org/api/child_process.html
And Mike's method is that you can develop a C++ module for node.js: http://nodejs.org/api/addons.html


--
You received this message because you are subscribed to the Google Groups "node-webkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-webkit...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Best Regards 
@zhchbin Chaobin Zhang

alen....@gmail.com

unread,
May 14, 2013, 4:06:23 PM5/14/13
to node-...@googlegroups.com
Got it. Thanks.
Reply all
Reply to author
Forward
0 new messages