spawn to exec
This commit is contained in:
@@ -101,10 +101,19 @@ exports.play = function(idx) {
|
||||
Log.error(e);
|
||||
}*/
|
||||
|
||||
var Child = spawn(
|
||||
/*var Child = spawn(
|
||||
App.get('tools_root')+'action.sh',
|
||||
['play']
|
||||
);
|
||||
);*/
|
||||
|
||||
child = exec(App.get('tools_root')+'action.sh play',
|
||||
function (error, stdout, stderr) {
|
||||
console.log('stdout: ' + stdout);
|
||||
console.log('stderr: ' + stderr);
|
||||
if (error !== null) {
|
||||
console.log('exec error: ' + error);
|
||||
}
|
||||
});
|
||||
|
||||
// listen for any response from the child
|
||||
Child.stdout.on('data', function(chunk) {
|
||||
|
||||
Reference in New Issue
Block a user