Skip to content

Instantly share code, notes, and snippets.

@hashrock
Created October 28, 2013 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hashrock/7191934 to your computer and use it in GitHub Desktop.
Save hashrock/7191934 to your computer and use it in GitHub Desktop.
ping
var spawn = require('child_process').spawn;
var ps = spawn("ping", ["192.168.5.56", "-c 1", "-t 1"]);
ps.on('exit', function(code) {
console.log('ps process exited with code ' + code);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment