Created
October 21, 2014 22:23
-
-
Save mattandrews/ae8ed13562ecd037517c to your computer and use it in GitHub Desktop.
execute arbitrary shell commands in node
This file contains hidden or 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 sys = require('sys') | |
var exec = require('child_process').exec; | |
function puts(error, stdout, stderr) { sys.puts(stdout) } | |
// pass in your command line arguments here – this one uses the default local config | |
exec("converjon --config node_modules/converjon/config/development.yml", puts); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment