Comparing version 0.0.3 to 0.0.4
@@ -13,12 +13,8 @@ #!/usr/bin/env node | ||
console.log(args) | ||
var ls = spawn(path.join(__dirname, command) /*command*/ , args /*args*/ , {} /*options, [optional]*/ ); | ||
ls.stdout.on('data', function (data) { | ||
console.log(data.toString()); | ||
}); | ||
var sp = spawn(path.join(__dirname, command) /*command*/ , args /*args*/ , {} /*options, [optional]*/ ); | ||
sp.stdout.pipe(process.stdout); | ||
ls.stderr.on('data', function (data) { | ||
console.log(data.toString()); | ||
}); | ||
sp.stderr.pipe(process.stderr); | ||
ls.on('exit', function (code) { | ||
sp.on('exit', function (code) { | ||
// console.log('child process exited with code ' + code); | ||
@@ -25,0 +21,0 @@ }); |
{ | ||
"name": "exec-test", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Exec", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
21430347
32