Skip site navigation (1) Skip section navigation (2)

Re: [Fwd: [ph-linux-newbie] help on cron]

From: mixo <mixo(at)beth(dot)uniforum(dot)org(dot)za>
To: Joseph Syjuco <joseph(at)asti(dot)dost(dot)gov(dot)ph>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: [Fwd: [ph-linux-newbie] help on cron]
Date: 2002-11-07 14:53:43
Message-ID: 3DCA7E77.6070004@beth.uniforum.org.za (view raw or flat)
Thread:
Lists: pgsql-php
try :

* * * * * /path/to/php -i /usr/local/apache/htdocs/xxx.php


Joseph Syjuco wrote:

>  
>
>
> ------------------------------------------------------------------------
>
> Subject:
> [ph-linux-newbie] help on cron
> From:
> Joseph Syjuco <joseph(at)asti(dot)dost(dot)gov(dot)ph>
> Date:
> 07 Nov 2002 15:58:12 +0000
> To:
> ph-linux-newbie(at)lists(dot)q-linux(dot)com
>
>
>id like to execute a php file automatically during certain periods of
>time so what i did i installed php-cgi (which allows me to execute php
>using cmd php <php file>).  Ive finished my php script, tried it and it
>worked but when i put it in crontab
>* * * * * php /usr/local/apache/htdocs/xxx.php
>it didnt work ... it didnt spew any errors ... just did nothing
>in order to verify if cron is working properly i added a new entry
>* * * * * rm /home/postgres/test.txt
>when i inspected the results ... 2nd script worked (rm) but not the php
>script
>any ideas whats wrong?  
>path of script is ok and path is working when i execute it in command
>line
>TIA
>joseph
>
>
>
>_______________________________________________
>ph-linux-newbie mailing list
>http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
>plug website http://plug.linux.org.ph
>to unsubscribe, send 'unsubscribe' to ph-linux-newbie-request(at)lists(dot)q-linux(dot)com
>  
>
>------------------------------------------------------------------------
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 4: Don't 'kill -9' the postmaster
>  
>




In response to

pgsql-php by date

Next:From: Joseph SyjucoDate: 2002-11-07 16:02:26
Subject: [Fwd: [ph-linux-newbie] help on cron]
Previous:From: Papp GyozoDate: 2002-11-07 09:53:27
Subject: Re: Spaawn another process

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group