Skip to content

Instantly share code, notes, and snippets.

@webuti
Created July 25, 2017 11:59
Show Gist options
  • Save webuti/0fda33fb051cc4e440e4a3d080e38f49 to your computer and use it in GitHub Desktop.
Save webuti/0fda33fb051cc4e440e4a3d080e38f49 to your computer and use it in GitHub Desktop.
Does gearman work?
var exec = require('child_process').exec;
exec('ps aux | grep gearman', function (error, stdout, stderr) {
stdoutsp = stdout.split('php cli.php');
if (stdoutsp[1]) {
console.log('gearmanWork');
}
else {
console.log('gearman Not Work');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment