infinite loop?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
trogster
Forum Newbie
Posts: 3
Joined: Sun Oct 05, 2008 10:05 pm

infinite loop?

Post 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.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: infinite loop?

Post by alex.barylski »

Post Reply