[nycphp-talk] Run PHP script as service (every 10 seconds)
Anthony Wlodarski
anthony at thrillist.com
Tue Dec 16 10:04:25 EST 2008
On your distro of choice execute "man crontab". Also try "crontab -l" to familiarize yourself with how the cron layout looks.
-Anthony
________________________________
From: Fernando Gabrieli <fgabrieli at gmail.com>
Reply-To: NYPHP Talk <talk at lists.nyphp.org>
Date: Tue, 16 Dec 2008 06:43:34 -0800
To: NYPHP Talk <talk at lists.nyphp.org>
Subject: Re: [nycphp-talk] Run PHP script as service (every 10 seconds)
if you could change it so it runs every minute (instead of every 10 seconds) you could use a cron...
On Tue, Dec 16, 2008 at 5:45 AM, hafez ahmad <hafezadnan at gmail.com> wrote:
Dears,
I need to run PHP script every 10 seconds , I can do that with (while true) and sleep(10), but I need to the script always run on Linux machine as service.
Any Ideas?
Regards,
hafez
_______________________________________________
New York PHP User Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org/show_participation.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20081216/9ebfe071/attachment.html>
More information about the talk
mailing list