Page 1 of 1

infinite loop?

Posted: Sun Oct 05, 2008 10:09 pm
by trogster
well not really, but im looking for a way to get a background process running for like 24hs max, or 12hs, and i need to be able to send like 'commands' to the process so it can open child process to do other stuff. Like a main process that can read commands and execute different child process depending of the command sent.
maybe the command could be just a txt with vars and the infinite loop can read from there, but im still not sure how to safely manage a infinite loop, cause i will also like to run more than one at a time, i have 8gb ram.
I have been searching on pcntl functions but could really find out how to achieve this, and theres no much info out there about it.

Re: infinite loop?

Posted: Sun Oct 05, 2008 10:36 pm
by alex.barylski