I am writing a nodejs function to execute the nohup command and sending the success result as an HTTP response.
function _nohup(cmd,res){ var child = exec('nohup ./' + cmd + '.sh &', function (error, stdout, stderr) { res.writeHeader(200); res.end("start process success!"); }); }
But when I call the function at url, the response data cannot return.
hyperion
source share