Skip to content

Commit

Permalink
clean up whitespace in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Scott authored and ry committed Mar 22, 2011
1 parent 67913a0 commit 2b27361
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/api/child_processes.markdown
Expand Up @@ -71,7 +71,7 @@ if set true, will cause the subprocess to be run in a new session.

Example of running `ls -lh /usr`, capturing `stdout`, `stderr`, and the exit code:

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

Expand All @@ -90,7 +90,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'),
var util = require('util'),
spawn = require('child_process').spawn,
ps = spawn('ps', ['ax']),
grep = spawn('grep', ['ssh']);
Expand Down Expand Up @@ -144,8 +144,8 @@ See also: `child_process.exec()`
High-level way to execute a command as a child process, buffer the
output, and return it all in a callback.

var util = require('util'),
exec = require('child_process').exec,
var util = require('util'),
exec = require('child_process').exec,
child;

child = exec('cat *.js bad_file | wc -l',
Expand Down

0 comments on commit 2b27361

Please sign in to comment.