Created
June 16, 2012 21:19
-
-
Save FLYBYME/2942524 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
var util = require('util') | |
var spawn = require('child_process').spawn | |
var fs = require('fs') | |
var out = fs.createWriteStream('./out.log', { | |
flags : 'a', | |
encoding : null, | |
mode : 0666 | |
}) | |
var child = spawn(process.execPath, [__dirname + '/fork-cp.js'], { | |
//silent : false, | |
stdio : 'ipc' | |
}); | |
child.on('exit', function(code) { | |
console.log('ps process exited with code ' + code); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment