Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
125
rated 0 times [  131] [ 6]  / answers: 1 / hits: 18352  / 12 Years ago, thu, august 9, 2012, 12:00:00

I'm working with node.js and I want to when there's a request to a url like ./calculate start a new process to make these complex calculations, and I want that process to continue even if the script which called it has finished.
Is it possible?



Thank you.


More From » node.js

 Answers
11

You can use the natively provided child process facility:
http://nodejs.org/api/child_process.html



And use the unix nohup command to keep the spawned process alive even if the parent process died.


[#83746] Wednesday, August 8, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eastonb

Total Points: 498
Total Questions: 91
Total Answers: 102

Location: Tanzania
Member since Wed, Feb 24, 2021
3 Years ago
;