Re: php script as cron job?
| From: | Bud Rogers | Date: | Mon, 17 Jul 2000 16:41:22 +0000 |
| Subject: | Re: php script as cron job? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6929@lists.php.net to get a copy of this message | ||
"Lars Wilhelmsen" <lw@ez.no> writes:
> If you compile php as a standalone binary, and put it
> in an adequate place, like /usr/local/bin, you could put
> #/usr/local/bin/php -q
Excuse me, Lars. Wouldn't that be
#!/usr/local/bin/php -p
^
?
> in the top of your localrunning script that you want to
> run as a cronjob.
>
> 5 0 * * * $HOME/scripts/db_gc.php
--
Bud Rogers <budr@sirinet.net> http://www.sirinet.net/~budr/zamm.html