所以我有一些麻煩這裏節點和產卵流程.. 我產卵外部的exe過程這樣: var writeStream = fs.createWriteStream(logPath);
writeStream.write(new Date().toString() + " : " + type + " : LOG STARTED ");
var process = cp.spaw
for (i = 0; i < 1030; i++)
{
var fs = require("fs")
var spawn = require("child_process").spawn
var log = fs.openSync("./program.log", "a")
var child = spawn("./program", [], {de