Re: [Q] Exec'ing a command
| From: | Daniel Brown | Date: | Fri, 27 Jun 2008 19:18:52 +0000 |
| Subject: | Re: [Q] Exec'ing a command | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-276087@lists.php.net to get a copy of this message | ||
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.
--
</Daniel P. Brown>
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.