RE: [PHP] cron job
| From: | Jonathan Ohlrich | Date: | Wed, 20 Dec 2000 15:22:14 +0000 |
| Subject: | RE: [PHP] cron job | ||
| References: | 1 | Groups: | php.general php.general |
| Request: | Send a blank email to php-general+get-31213@lists.php.net to get a copy of this message | ||
What i did was the following:
in the .php:
----------------------------
#!/usr/bin/php
<? exec("webalizer -c /usr/local/etc/webalizer.conf"); ?>
---snip---
----------------------------
and in the cron:
0 0 * * * /home/cron/dailystats.php
----------------------------
that's all it took and it now runs perfect.
-----Original Message-----
From: Krznaric Michael [mailto:mkrznaric@rand.com]
Sent: Wednesday, December 20, 2000 10:21 AM
To: 'Ahmed'; php-general@lists.php.net
Subject: RE: [PHP] cron job
What happens when you say
lynx localhost/daily_jobs.php
??
Also, you should look at the email of the cron job owner. You should have
an email there containing output from your cron entry.
Mike
-----Original Message-----
From: Ahmed [mailto:ahmed@mazika.com]
Sent: Wednesday, December 20, 2000 9:47 AM
To: php-general@lists.php.net
Subject: [PHP] cron job
Hi all,
I have a problem with excuting a daily PHP script, I put this script in
the cron.daily folder so that its excuted daily, but I noticed that its
never excuted, I made sure of the permissions on the cron file, and here is
the content of the cron file
<<
#!/bin/sh
lynx -dump localhost/daily_jobs.php > /dev/null
>>
I tried to remove the > /dev/null , but nothing changed and when I excute
the file manually by issuing ./daily_jobs.php it works just fine !!
so what the problem could be ?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net