Skip to content

Instantly share code, notes, and snippets.

@milani
Created October 2, 2012 20:47
Show Gist options
  • Save milani/3823202 to your computer and use it in GitHub Desktop.
Save milani/3823202 to your computer and use it in GitHub Desktop.
var spawn = require('child_process').spawn;
worker = spawn('node',['worker.js']);
worker.stdout.on('data',function(data){
console.log('worker sent:',data.toString());
});
console.log('Im worker');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment