Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
doc: remove unused util from child_process
Browse files Browse the repository at this point in the history
  • Loading branch information
shama authored and bnoordhuis committed Aug 11, 2012
1 parent 64ac54a commit 4ef808e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions doc/api/child_process.markdown
Expand Up @@ -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:

var util = require('util'),
spawn = require('child_process').spawn,
var spawn = require('child_process').spawn,
ls = spawn('ls', ['-lh', '/usr']);

ls.stdout.on('data', function (data) {
Expand All @@ -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'

var util = require('util'),
spawn = require('child_process').spawn,
var spawn = require('child_process').spawn,
ps = spawn('ps', ['ax']),
grep = spawn('grep', ['ssh']);

Expand Down

0 comments on commit 4ef808e

Please sign in to comment.