-
Notifications
You must be signed in to change notification settings - Fork 739
Closed
Labels
execIssues specific to the shell.exec() APIIssues specific to the shell.exec() APIfixBug/defect, or a fix for such a problemBug/defect, or a fix for such a problem
Description
var shell = require('shelljs');
var child = shell.exec('node --version', {silent:true, async:true});
child.stdout.on('data', function(data) {
console.log(data);
});
child.on("exit", function(code) {
console.log(code);
});
child.on("error", function (error) {
console.log(error);
});
The output of this command is :
0
v1.0.4
What do i have to do, to make shelljs return all data immediately and before on exit is executed ?
Metadata
Metadata
Assignees
Labels
execIssues specific to the shell.exec() APIIssues specific to the shell.exec() APIfixBug/defect, or a fix for such a problemBug/defect, or a fix for such a problem