svn: /web/doc-editor/trunk/scripts/cron/ check_entities.php update_data.php

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Wed, 07 Apr 2010 22:18:51 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=297654

Log:
Use /usr/bin/env php to find php binary automaticaly

Changed paths:
    U   web/doc-editor/trunk/scripts/cron/check_entities.php
    U   web/doc-editor/trunk/scripts/cron/update_data.php

Modified: web/doc-editor/trunk/scripts/cron/check_entities.php
===================================================================
--- web/doc-editor/trunk/scripts/cron/check_entities.php	2010-04-07 22:18:44 UTC (rev 297653)
+++ web/doc-editor/trunk/scripts/cron/check_entities.php	2010-04-07 22:18:51 UTC (rev 297654)
@@ -1,3 +1,4 @@
+#!/usr/bin/env php
 <?php

 /***
@@ -4,7 +5,7 @@
 * This script is intended to be placed in a cronjob.
 * It must be run every Thursday, at 01hOO for example.
 * On Unix, you can use crontab -e and place this :
-* 00 01 * * 4 /usr/bin/php /path/to/your/vcs/dir/doc-editor/scripts/cron/check_entities.php
+* 00 01 * * 4 /path/to/your/vcs/dir/doc-editor/scripts/cron/check_entities.php
 ****/

 require_once dirname(__FILE__) . '/../../php/Conf.php';

Modified: web/doc-editor/trunk/scripts/cron/update_data.php
===================================================================
--- web/doc-editor/trunk/scripts/cron/update_data.php	2010-04-07 22:18:44 UTC (rev 297653)
+++ web/doc-editor/trunk/scripts/cron/update_data.php	2010-04-07 22:18:51 UTC (rev 297654)
@@ -1,3 +1,4 @@
+#!/usr/bin/env php
 <?php

 /***
@@ -4,7 +5,7 @@
 * This script is intended to be placed in a cronjob.
 * It must be run every day, at 00hOO for example.
 * On Unix, you can use crontab -e and place this :
-* 00 00 * * * /usr/bin/php /path/to/your/vcs/dir/doc-editor/scripts/cron/update_data.php
+* 00 00 * * * /path/to/your/vcs/dir/doc-editor/scripts/cron/update_data.php
 ****/

 require_once dirname(__FILE__) . '/../../php/Conf.php';
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.