diff options
Diffstat (limited to 'tests/test_sub_process.js')
| -rw-r--r-- | tests/test_sub_process.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_sub_process.js b/tests/test_sub_process.js new file mode 100644 index 00000000..95f5126e --- /dev/null +++ b/tests/test_sub_process.js @@ -0,0 +1,9 @@ +var spawn = require('child_process').spawn; + +var ls = spawn('ls'); +ls.stdout.on('data', function (data) { + console.log('stdout ' + data.length); +}); +ls.on('close', function(code, signal) { + console.log('closed, ' + code + ', ' + signal); +}); |
