Re: [Q] Exec'ing a command

From: Date: Fri, 27 Jun 2008 19:25:44 +0000
Subject: Re: [Q] Exec'ing a command
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-276088@lists.php.net to get a copy of this message
On Jun 27, 2008, at 3:18 PM, Daniel Brown wrote:
On Fri, Jun 27, 2008 at 3:12 PM, Eric Gorr <mailist@ericgorr.net> wrote:
Now, one possible solution to this problem is that the php script adds it's request to run the unix app to a queue and their is some other code which pulls a request off the queue, performs the operation and returns the data back to the php script which made the request. Are there other solutions that I have not considered?
Can you just add the commands to a database, and have the commands read from there and run via cron job every n minutes? That would ensure that the *NIX file will only be run with a single instance, but run over and over again.
Sure.

« previous php.general (#276088) next »