Created
September 7, 2013 13:50
-
-
Save NotBobTheBuilder/6475717 to your computer and use it in GitHub Desktop.
This file contains 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
/* | |
* /tmp/child.js | |
*/ | |
var run = function () { | |
console.log('awh yeah'); | |
return 3; | |
}; |
This file contains 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
/* | |
* /tmp/fork.js | |
*/ | |
var child = require('child_process'); | |
var f = child.fork('/tmp/child'); | |
f.send({ | |
command: 'run' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment