Re: [PHP] cron job problem

2012-10-23 Thread Ashley Sheridan
On Tue, 2012-10-23 at 18:51 -0400, Jim Giner wrote: > On 10/23/2012 6:57 PM, Ashley Sheridan wrote: > > On Tue, 2012-10-23 at 18:36 -0400, Jim Giner wrote: > > > >> On 10/23/2012 6:18 PM, David OBrien wrote: > >>> On Tue, Oct 23, 2012 at 5:31 PM, Daniel Brown wrote: > >>> > On Tue, Oct 23, 2

Re: [PHP] cron job problem

2012-10-23 Thread Jim Giner
On 10/23/2012 6:57 PM, Ashley Sheridan wrote: On Tue, 2012-10-23 at 18:36 -0400, Jim Giner wrote: On 10/23/2012 6:18 PM, David OBrien wrote: On Tue, Oct 23, 2012 at 5:31 PM, Daniel Brown wrote: On Tue, Oct 23, 2012 at 5:34 PM, Ashley Sheridan wrote: Crontab is the daemon which runs cron

Re: [PHP] cron job problem

2012-10-23 Thread Ashley Sheridan
On Tue, 2012-10-23 at 18:36 -0400, Jim Giner wrote: > On 10/23/2012 6:18 PM, David OBrien wrote: > > On Tue, Oct 23, 2012 at 5:31 PM, Daniel Brown wrote: > > > >> On Tue, Oct 23, 2012 at 5:34 PM, Ashley Sheridan > >> wrote: > >>> > >>> > >>> Crontab is the daemon which runs cron jobs, and some d

Re: [PHP] cron job problem

2012-10-23 Thread Jim Giner
On 10/23/2012 6:18 PM, David OBrien wrote: On Tue, Oct 23, 2012 at 5:31 PM, Daniel Brown wrote: On Tue, Oct 23, 2012 at 5:34 PM, Ashley Sheridan wrote: Crontab is the daemon which runs cron jobs, and some distros have set up special files called cron.daily (or daily.cron I don't recall), c

Re: [PHP] cron job problem

2012-10-23 Thread David OBrien
On Tue, Oct 23, 2012 at 5:31 PM, Daniel Brown wrote: > On Tue, Oct 23, 2012 at 5:34 PM, Ashley Sheridan > wrote: > > > > > > Crontab is the daemon which runs cron jobs, and some distros have set up > > special files called cron.daily (or daily.cron I don't recall), > > cron.hourly, etc to make i

Re: [PHP] cron job problem

2012-10-23 Thread Daniel Brown
On Tue, Oct 23, 2012 at 5:34 PM, Ashley Sheridan wrote: > > > Crontab is the daemon which runs cron jobs, and some distros have set up > special files called cron.daily (or daily.cron I don't recall), > cron.hourly, etc to make it easier to schedule jobs. Quick clarification and correction he

Re: [PHP] cron job problem

2012-10-23 Thread Ashley Sheridan
On Tue, 2012-10-23 at 17:12 -0400, Jim Giner wrote: > > > On 10/23/2012 5:19 PM, Ashley Sheridan wrote: > > > > > On Tue, 2012-10-23 at 16:59 -0400, Jim Giner wrote: > > > > > On 10/23/2012 4:56 PM, Daniel Brown wrote: > > > > On Tue, Oct 23, 2012 at 4:48 PM, Jim Giner > > > > wrote: > > >

Re: [PHP] cron job problem

2012-10-23 Thread Ashley Sheridan
On Tue, 2012-10-23 at 16:59 -0400, Jim Giner wrote: > On 10/23/2012 4:56 PM, Daniel Brown wrote: > > On Tue, Oct 23, 2012 at 4:48 PM, Jim Giner > > wrote: > >> I have a php script that has been triggered by my hoster's cron process(?) > >> to run once a day since last March. It's been running f

Re: [PHP] cron job problem

2012-10-23 Thread Daniel Brown
On Tue, Oct 23, 2012 at 4:59 PM, Jim Giner wrote: >> > Yes - same msg same time If it wouldn't be a problem, can you provide the script here (or on a site like Pastebin), as well as the crontab time entry for this? While checking the crontab, make sure a duplicate entry for this wasn't someho

Re: [PHP] cron job problem

2012-10-23 Thread Jim Giner
On 10/23/2012 4:56 PM, Daniel Brown wrote: On Tue, Oct 23, 2012 at 4:48 PM, Jim Giner wrote: I have a php script that has been triggered by my hoster's cron process(?) to run once a day since last March. It's been running fine - and I've made no changes to it. Suddenly in the last couple of d

Re: [PHP] cron job problem

2012-10-23 Thread Daniel Brown
On Tue, Oct 23, 2012 at 4:48 PM, Jim Giner wrote: > I have a php script that has been triggered by my hoster's cron process(?) > to run once a day since last March. It's been running fine - and I've made > no changes to it. Suddenly in the last couple of days it is running twice > it seems. The

[PHP] cron job problem

2012-10-23 Thread Jim Giner
I have a php script that has been triggered by my hoster's cron process(?) to run once a day since last March. It's been running fine - and I've made no changes to it. Suddenly in the last couple of days it is running twice it seems. The whole process sends an email at its conclusion and the

Re: [PHP] PHP cron job optimization

2011-09-12 Thread Igor Escobar
@Eric ok ;) Regards, Igor Escobar *Software Engineer * + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar On Mon, Sep 12, 2011 at 10:52 AM, Eric Butera wrote: > On Mon, Sep 12, 2011 at 9:37 AM, Igor Escobar > wrote: > > Other goo

Re: [PHP] PHP cron job optimization

2011-09-12 Thread Eric Butera
On Mon, Sep 12, 2011 at 9:37 AM, Igor Escobar wrote: > Other good point is: always set a timeout connection when you're getting the > RSS data to avoid your thread get stuck unnecessary. Use cURL (is much more > faster then file_get_contents). > > Multithreading in PHP with cURL http://devzone.zen

Re: [PHP] PHP cron job optimization

2011-09-12 Thread Igor Escobar
Other good point is: always set a timeout connection when you're getting the RSS data to avoid your thread get stuck unnecessary. Use cURL (is much more faster then file_get_contents). Multithreading in PHP with cURL http://devzone.zend.com/article/3341 Regards, Igor Escobar *Software Engineer *

Re: [PHP] PHP cron job optimization

2011-09-12 Thread Igor Escobar
Use PHP threads. Do the job separately.. in parts... in other words... you can't read all them at once. You can read a little more about php multithreading here: http://blog.motane.lu/2009/01/02/multithreading-in-php/ You can use a non-relational database like mongo or couchdb to manage where you

Re: [PHP] PHP cron job optimization

2011-09-10 Thread Stuart Dallas
On 10 Sep 2011, at 09:35, muad shibani wrote: > I want to design an application that reads news from RSS sources. > I have about 1000 RSS feed to collect from. > > I also will use Cron jobs every 15 minutes to collect the data. > the question is: Is there a clever way to collect all those feed it

Re: [PHP] PHP cron job optimization

2011-09-10 Thread Eric Butera
On Sat, Sep 10, 2011 at 1:47 PM, Sean Greenslade wrote: > On Sat, Sep 10, 2011 at 4:35 AM, muad shibani wrote: > >> I want to design an application that reads news from RSS sources. >> I have about 1000 RSS feed to collect from. >> >> I also will use Cron jobs every 15 minutes to collect the data.

Re: [PHP] PHP cron job optimization

2011-09-10 Thread MUAD SHIBANI
thanks a lot after I test it I will share the code .. Thanks again On Sat, Sep 10, 2011 at 11:20 AM, Gary Golden wrote: > > I want to design an application that reads news from RSS sources. > >> I have about 1000 RSS feed to collect from. > >> > >> I also will use Cron jobs every 15 minutes to c

Re: [PHP] PHP cron job optimization

2011-09-10 Thread Gary Golden
> I want to design an application that reads news from RSS sources. >> I have about 1000 RSS feed to collect from. >> >> I also will use Cron jobs every 15 minutes to collect the data. >> the question is: Is there a clever way to collect all those feed items >> without exhausting the server >> any

Re: [PHP] PHP cron job optimization

2011-09-10 Thread Sean Greenslade
On Sat, Sep 10, 2011 at 4:35 AM, muad shibani wrote: > I want to design an application that reads news from RSS sources. > I have about 1000 RSS feed to collect from. > > I also will use Cron jobs every 15 minutes to collect the data. > the question is: Is there a clever way to collect all those f

[PHP] PHP cron job optimization

2011-09-10 Thread muad shibani
I want to design an application that reads news from RSS sources. I have about 1000 RSS feed to collect from. I also will use Cron jobs every 15 minutes to collect the data. the question is: Is there a clever way to collect all those feed items without exhausting the server any Ideas Thank you in

Re: [PHP] Pass parameters via url inside a php cron job

2008-09-25 Thread Daniel Brown
On Thu, Sep 25, 2008 at 6:34 AM, Merlin Morgenstern <[EMAIL PROTECTED]> wrote: > Hello Jochem, > > thank you this has solved my problem: > bla.php 2 > $tf = $argv[1]; Conversely, on a *NIX system, if you want to grab it via the web - locally or from a remote server - you can do this: * * * *

Re: [PHP] Pass parameters via url inside a php cron job

2008-09-25 Thread Merlin Morgenstern
Hello Jochem, thank you this has solved my problem: bla.php 2 $tf = $argv[1]; Best regards, Merlin Jochem Maas wrote: Merlin Morgenstern schreef: Hi there, I would like to run a php file via cron job and there is a parameter to be passed. Unfortunatelly this does not work: # /usr/local/bin

Re: [PHP] Pass parameters via url inside a php cron job

2008-09-25 Thread Jochem Maas
Merlin Morgenstern schreef: > Hi there, > > I would like to run a php file via cron job and there is a parameter to > be passed. Unfortunatelly this does not work: > > # /usr/local/bin/php /home/www/create_notification_emails.php?tf=2 > Could not open input file: /home/www/create_notification_ema

Re: [PHP] Pass parameters via url inside a php cron job

2008-09-25 Thread Aschwin Wesselius
Merlin Morgenstern wrote: Hi there, I would like to run a php file via cron job and there is a parameter to be passed. Unfortunatelly this does not work: # /usr/local/bin/php /home/www/create_notification_emails.php?tf=2 Could not open input file: /home/www/create_notification_emails.php?tf=2

[PHP] Pass parameters via url inside a php cron job

2008-09-25 Thread Merlin Morgenstern
Hi there, I would like to run a php file via cron job and there is a parameter to be passed. Unfortunatelly this does not work: # /usr/local/bin/php /home/www/create_notification_emails.php?tf=2 Could not open input file: /home/www/create_notification_emails.php?tf=2 The problem seems to be t

Re: [PHP] cron job style php...

2005-01-16 Thread Ligaya Turmelle
Check out here - http://www.htmlcenter.com/tutorials/tutorials.cfm/155/php/ and here - http://www.phpfreaks.com/tutorials/28/0.php and if you want to read about my learning with cron try here - http://www.khankennels.com/blog/index.php?p=103 Hope it all helps. Respectfully, Ligaya Turmelle Russell

Re: [PHP] cron job style php...

2005-01-16 Thread Bret Hughes
On Sun, 2005-01-16 at 17:00, Russell P Jones wrote: > I have written a simple script that when a date in an array matches todays > date, it sends an email (notifies me when bills are due). Any ideas on how > to make this run once a day? Can you do a cron job on a PHP prog? > > Russ Jones Never t

RE: [PHP] cron job style php...

2005-01-16 Thread Hans Zaunere
> I have written a simple script that when a date in an array matches todays > date, it sends an email (notifies me when bills are due). Any ideas on how > to make this run once a day? Can you do a cron job on a PHP prog? It can, and run basically like any other shell script. The first line need

Re: [PHP] cron job style php...

2005-01-16 Thread Randy Johnson
ROTECTED]> To: Sent: Sunday, January 16, 2005 6:00 PM Subject: [PHP] cron job style php... I have written a simple script that when a date in an array matches todays date, it sends an email (notifies me when bills are due). Any ideas on how to make this run once a day? Can you do a cron job on

[PHP] cron job style php...

2005-01-16 Thread Russell P Jones
I have written a simple script that when a date in an array matches todays date, it sends an email (notifies me when bills are due). Any ideas on how to make this run once a day? Can you do a cron job on a PHP prog? Russ Jones -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

[PHP] Cron Job in vDeck

2004-06-03 Thread Matt Palermo
Hey guys. I was wondering if anyone knows how to go about creating a cron job using vDeck (that's what is installed on the server) that just accesses a PHP file and runs everything in the PHP file. Does anyone know how to go about doing something like this? Thanks, Matt http://sweetphp.com --

Re: [PHP] cron job for php not working

2004-05-20 Thread Tim Traver
It looks like that cron line is making it so that the command runs as the user php... so, you should check if that user has permission to run the script. Tim. At 08:33 AM 5/20/2004, Merlin wrote: Hi there, I am trying to install following cron job: 0 6 * * * php /home/www/project/app_cron/follow_

Re: [PHP] cron job for php not working

2004-05-20 Thread James E Hicks III
On Thursday 20 May 2004 11:35 am, Jay Blanchard wrote: > At the command line type "which php" and it will return the full path to > php. Modify your line in the crontab with the full path... > > 0 6 * * * /usr/local/bin/php > /home/www/project/app_cron/follow_up_new_members.php I always put the #!

RE: [PHP] cron job for php not working

2004-05-20 Thread Jay Blanchard
[snip] I am trying to install following cron job: 0 6 * * * php /home/www/project/app_cron/follow_up_new_members.php The script works, if I run this "php /home..." line manually it works out, but it does not automaticaly at 6 am as supposed. I do also see in /var/log/messages that the cron job h

[PHP] cron job for php not working

2004-05-20 Thread Merlin
Hi there, I am trying to install following cron job: 0 6 * * * php /home/www/project/app_cron/follow_up_new_members.php The script works, if I run this "php /home..." line manually it works out, but it does not automaticaly at 6 am as supposed. I do also see in /var/log/messages that the cron job

Re: [PHP] cron job

2003-06-17 Thread CPT John W. Holmes
> Is there a way to run a script (to check a table for new fields, or to > check time..etc) evrey few hours, without using programes souch as > crontab. In addition to what others have said, you don't _have_ to set up the cron job (or any scheduled job) on the same computer as your scripts. If you

Re: [PHP] cron job

2003-06-17 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 17 Jun 2003 at 17:59, lines prefixed by '>' were originally written by you. > Is there a way to run a script (to check a table for new fields, or to > check time..etc) evrey few hours, without using programes souch as > crontab. > Paul >

RE: [PHP] cron job

2003-06-17 Thread Jay Blanchard
[snip] Is there a way to run a script (to check a table for new fields, or to check time..etc) evrey few hours, without using programes souch as crontab. [/snip] You could run a looping script with a sleep statement in it, not a good idea though. Jay -- PHP General Mailing List (http://www.php.n

[PHP] cron job

2003-06-17 Thread Paul Marinas
Is there a way to run a script (to check a table for new fields, or to check time..etc) evrey few hours, without using programes souch as crontab. Paul GnuPG Key http://sgi.rdscv.ro/~paulm/paulm.PGP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

Re: [PHP] Cron Job help Needed

2003-02-19 Thread Ray Hunter
Do a search at google for "cron jobs tutorial"... http://www.google.com/search?q=cron+job+tutorials That should give you lots to read... :) -- Ray On Wed, 2003-02-19 at 13:36, Pushpinder Singh Garcha wrote: > Hello All, > > I need to ask you about some resources for "cron" jobs. Please sugges

[PHP] Cron Job help Needed

2003-02-19 Thread Pushpinder Singh Garcha
Hello All, I need to ask you about some resources for "cron" jobs. Please suggest some online help Thanks Pushpinder Singh Garcha _ Web Architect

RE: [PHP] CRON JOB

2002-07-17 Thread Miguel Cruz
On Wed, 17 Jul 2002, Jay Blanchard wrote: > Look at the archives for the past couple of days, it has been covered in > some detail. Make sure to compile PHP without apsx, and for practical > purposes move the PHP executable to the /usr/local/bin directory. Then put > this as the first line of the

RE: [PHP] CRON JOB

2002-07-17 Thread Jay Blanchard
[snip] What do I have to do before I can run my file.php as a cron job in Linux? [/snip] Look at the archives for the past couple of days, it has been covered in some detail. Make sure to compile PHP without apsx, and for practical purposes move the PHP executable to the /usr/local/bin directory.

Re: [PHP] CRON JOB

2002-07-17 Thread Jason Wong
On Wednesday 17 July 2002 20:51, MAAS wrote: > What do I have to do before I can run my file.php as a cron job in Linux? search archives for "cron". -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet

Re: [PHP] CRON JOB

2002-07-17 Thread José León Serna
MAAS wrote: >What do I have to do before I can run my file.php as a cron job in Linux? > What problem do you have? I have no problems with it calling it as php myfile.php -- Best Regards. -- QaDRAM Studio, RAD development for the web http://studio.qadram

[PHP] CRON JOB

2002-07-17 Thread MAAS
What do I have to do before I can run my file.php as a cron job in Linux? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Cron Job

2002-02-07 Thread Michael Geier
, February 07, 2002 2:32 PM To: [EMAIL PROTECTED] Subject: [PHP] Cron Job Hi, How do i set cron job on Red Hat Linux. Looking forward for yours response. karthikeyan. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Cron Job

2002-02-07 Thread karthikeyan
Hi, How do i set cron job on Red Hat Linux. Looking forward for yours response. karthikeyan.

Re: SV: [PHP] cron job problem.

2002-01-10 Thread Mehmet Kamil ERISEN
Hi, thanks for the reply. I did setup the crontab already to run every minute. the webmaster account receives the report. Here is the output that I get when I remove the #!/usr/local/bin/php -q /home/webvoire/www/cm/test.php: ?php: No such file or directory /home/webvoire/www/cm/test.php: =Cron

SV: [PHP] cron job problem.

2002-01-10 Thread Daniel Alsen
Hmm...don?t you have to actually create a job in crontab? Saying that you want a mail every day at 6:00 you would want to create something like: * 6 * * * php /usr/local/bin/php > /dev/null in crontab and lose #!/usr/local/bin/php -q in your script. # Daniel Alsen| www.mindbash.com # # [EM

[PHP] cron job problem.

2002-01-10 Thread Mehmet Kamil ERISEN
Hello All, I have a php script that i tested first through my browser. If has a simple mail() command. It workd fine and I received the email. not I tried to run it as a cron job by adding #!/usr/local/bin/php -q My webmaster account receives the confirmation that cron job has run, but I do not r