Browse Source

doc: remove unused util from child_process

v0.8.7-release
Kyle Robinson Young 13 years ago
committed by Ben Noordhuis
parent
commit
4ef808ec0a
  1. 6
      doc/api/child_process.markdown

6
doc/api/child_process.markdown

@ -266,8 +266,7 @@ Use `env` to specify environment variables that will be visible to the new proce
Example of running `ls -lh /usr`, capturing `stdout`, `stderr`, and the exit code: Example of running `ls -lh /usr`, capturing `stdout`, `stderr`, and the exit code:
var util = require('util'), var spawn = require('child_process').spawn,
spawn = require('child_process').spawn,
ls = spawn('ls', ['-lh', '/usr']); ls = spawn('ls', ['-lh', '/usr']);
ls.stdout.on('data', function (data) { ls.stdout.on('data', function (data) {
@ -285,8 +284,7 @@ Example of running `ls -lh /usr`, capturing `stdout`, `stderr`, and the exit cod
Example: A very elaborate way to run 'ps ax | grep ssh' Example: A very elaborate way to run 'ps ax | grep ssh'
var util = require('util'), var spawn = require('child_process').spawn,
spawn = require('child_process').spawn,
ps = spawn('ps', ['ax']), ps = spawn('ps', ['ax']),
grep = spawn('grep', ['ssh']); grep = spawn('grep', ['ssh']);

Loading…
Cancel
Save