Skip to content

Instantly share code, notes, and snippets.

@dtinth
Created April 15, 2012 15:17
Show Gist options
  • Save dtinth/2393384 to your computer and use it in GitHub Desktop.
Save dtinth/2393384 to your computer and use it in GitHub Desktop.
var cp = require('child_process');
exports.notify = function(appName, message) {
var g = cp.spawn('growlnotify', [
'-n', appName,
'-s',
'-m', message,
'-p', '2'
]);
g.stdin.end();
g.stdout.destroy();
g.stderr.destroy();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment