Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //////////////////////////////////////////////////////////////////////////////////////////
- // Ejecutar un proceso desde NodeJS
- // http://nodejs.org/docs/v0.5.1/api/child_processes.html
- var sys = require('sys')
- var exec = require('child_process').exec;
- var child;
- child = exec("pwd", function (error, stdout, stderr) {
- sys.print('stdout: ' + stdout);
- sys.print('stderr: ' + stderr);
- if (error !== null) {
- console.log('exec error: ' + error);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment