Created
October 28, 2013 05:49
-
-
Save hashrock/7191934 to your computer and use it in GitHub Desktop.
ping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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