Skip to content

Instantly share code, notes, and snippets.

@omarkj
Created September 16, 2010 18:04
Show Gist options
  • Save omarkj/582867 to your computer and use it in GitHub Desktop.
Save omarkj/582867 to your computer and use it in GitHub Desktop.
var sys = require('sys'),
spawn = require('child_process').spawn,
openssl = spawn('python', ['test.py']);
openssl.stdout.on('data', function (data) {+
sys.print('signature is valid: ' + data);
});
openssl.stderr.on('data', function (data) {
sys.print('Error: ' + data);
});
openssl.on('exit', function (code) {
console.log('child process exited with code ' + code);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment