Re: cakephp 2.5 cron jobs

2015-11-27 Thread euromark
Maybe you can, but you probably shouldn't the call as documented definitly works. Just make sure you got permissions (+x) for the console cake file! Mark Am Mittwoch, 25. November 2015 14:01:00 UTC+1 schrieb Igor Padovan da Silva: > > You can use the */full/path/to/Console/cake -app /full/path/

Re: cakephp 2.5 cron jobs

2015-11-25 Thread Igor Padovan da Silva
You can use the */full/path/to/Console/cake -app /full/path/to/app your_shell * 2015-11-21 4:40 GMT-03:00 Ruslan : > Hi, > The first of all, Did you try copy-paste your command in terminal? ( /path > /to/app/ && Console/cake your_shell_name params). Do you see ant errors? > show it here. Check

Re: cakephp 2.5 cron jobs

2015-11-24 Thread Ruslan
Hi, The first of all, Did you try copy-paste your command in terminal? ( /path/ to/app/ && Console/cake your_shell_name params). Do you see ant errors? show it here. Check users rights I think you have issue (or will have second issue :) ) with permissions for tmp/cashe. Don't forget, you run c

cakephp 2.5 cron jobs

2015-11-20 Thread sandeepsk2020
hi i want to create a cron job in cakephp 2.5 in ubuntu server . i have tried lot of commands but not working (10 * * * * cd /path/to/app/ && Console/cake your_shell_name params,10 * * * * cd /path/to/app; ../Console/cake your_shell_name params) .If there is any way to call a cakephp action or

Re: Cron Jobs

2014-11-23 Thread CrotchFrog
Thanks for the input. Looks like using *php -c* is the way to go however i'll have to look into things a bit further. It seems as though there is an issue on the server side that is keeping the script from executing. On Saturday, November 22, 2014 8:09:47 PM UTC-5, Andras Kende wrote: > > This

Re: Cron Jobs

2014-11-22 Thread Andras Kende
This is how I run a cron on godaddy shared server Command: /web/cgi-bin/php5_3 -q -d register_argc_argv=on $HOME/html/mydomain/lib/Cake/Console/cake.php -app $HOME/html/mydomain/app Notice http://php.net/manual/en/features.commandline.options.php -c | Look for php.ini file in this directory Spe

Cron Jobs

2014-11-22 Thread Ed Propsner
Does anyone have an experience with setting up a cron job on a shared host where they must specify the location of the php.ini to be used? It's definitely possible but I haven't quite figured it out with cake and shell scripts. I have a site that is using PHP 5.4 fast cgi, but my crons are failing

Re: Multiple Cron jobs & CakePHP.

2012-09-07 Thread thatsgreat2345
Well I would actually write your shell and then create whatever data fetching/caching done in your model. In your shell just do $uses = array('YourModel');. I imagine you have some sort of function in your model that grabs data and such, and then caches it. So in your shell you can do just a call

Re: Multiple Cron jobs & CakePHP.

2012-09-07 Thread Salines
OK, I need clarification! Normally in my controller or action, I use cache to save the query. as described here http://book.cakephp.org/2.0/en/core-libraries/caching.html#using-cache-store-to-common-query-results This works nicely when the user visits the page, which takes data from its own da

Re: Multiple Cron jobs & CakePHP.

2012-09-07 Thread thatsgreat2345
Create shells, http://book.cakephp.org/2.0/en/console-and-shells.html And then run them using CakePHP. Be forewarned that you can use $uses to import models, but to use components you'll need to import Controller/Component from the core, ComponentCollections, etc. I'm not an expert with shells an

Multiple Cron jobs & CakePHP.

2012-09-07 Thread Salines
Hi. Web project on which I am currently working has eight external data sources. I implemented OAuth authorization for them, etc. Next, I want to use cron for the following tasks: every minute, refresh data from twitter, facebook and mail server ( 5 different actions); Every ten minutes, refres

Re: cron jobs

2011-03-06 Thread luca capra
o I'm used - and had organized my work - within this methodology. In drupal everything that has a "hook_cron" callback in modules, is then executed in /cron.php So, in my office server, I put cron jobs that "wget" websites and keep them "alive" on a publ

Re: cron jobs

2011-03-06 Thread luca capra
Hi, sorry for the long delay. Finally I get it working! If somebody is interested to this approach, let me know so I'll publish the code somewhere. Thanks. Luca On 01/03/2011 21:48, Akeda Bagus wrote: Try calling $this->Auth->allow('*') in beforeFilter of your AppController regards, Akeda

Re: cron jobs

2011-03-01 Thread Ryan Schmidt
On Mar 1, 2011, at 14:02, luca capra wrote: > I'm trying to get working a cron job invoked from a web url eg. > example.com/cron.php I don't understand... cron shouldn't really be doing anything with your web site. If you need to access your models from a script called from cron, write a Cake

Re: cron jobs

2011-03-01 Thread Akeda Bagus
Try calling $this->Auth->allow('*') in beforeFilter of your AppController regards, Akeda Bagus On 2 Mar 2011 03:04, "luca capra" wrote: Hi, I'm trying to get working a cron job invoked from a web url eg. example.com/cron.php Actually I've: - cloned the webroot/index.php - initialized Dispatche

cron jobs

2011-03-01 Thread luca capra
Hi, I'm trying to get working a cron job invoked from a web url eg. example.com/cron.php Actually I've: - cloned the webroot/index.php - initialized Dispatcher with no args - looped all controller files in controller/* - App.imported them, $controller->constructClasses, $controller->startupPro

Re: Running shells as cron jobs on Godaddy

2009-08-07 Thread Josh
It turns out there were 2 problems and there are two minor ongoing issues. For anybody setting up the cake shell on godaddy to run as a cron job, here is a description of my own issues: First: The "line12: cake: command not found" was cause because cakeshell couldn't find the cake bash file. I ch

Re: Running shells as cron jobs on Godaddy

2009-08-06 Thread JamesF
check -path in your arguments because it seems from what you typed that the php cli can't find cake.bat On Aug 6, 3:56 pm, Josh wrote: > Hi, > > I have been trying to get a shell script to run as a cron job on > Godaddy for quite a while. Here is what I have entered as a command > based on the C

Running shells as cron jobs on Godaddy

2009-08-06 Thread Josh
Hi, I have been trying to get a shell script to run as a cron job on Godaddy for quite a while. Here is what I have entered as a command based on the Cookbook (http://book.cakephp.org/view/846/Running-Shells- as-cronjobs): /home/content/.../html/vendors/cakeshell report -cli /web/cgi-bin/php5 -c

Re: Quick and easy dispatcher for cron jobs

2006-12-05 Thread Matt
Done and done: http://bakery.cakephp.org/articles/view/176 On Nov 20, 3:06 am, "nate" <[EMAIL PROTECTED]> wrote: > Here, make it more useful:http://bakery.cakephp.org/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: Quick and easy dispatcher for cron jobs

2006-11-19 Thread nate
Here, make it more useful: http://bakery.cakephp.org/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group,

Quick and easy dispatcher for cron jobs

2006-11-19 Thread Matt
There has been quite a few threads about the best way to run cron jobs when using CakePHP. I had to do this for my own application and I am happy with the result so I want to share it with everyone. I can't take all the credit for this as it's based on Jason Lee's post in t

Re: Connecting to the database directly and cron jobs

2006-06-24 Thread Langdon Stevenson
Thanks for all of the feedback. This should solve my problems. Regards, Langdon RosSoft wrote: > Also check > http://groups.google.es/group/cake-php/browse_thread/thread/ff3ad3c9e1e40aab/522fa7b6d6c2c20c?q=cron&rnum=2#522fa7b6d6c2c20c --~--~-~--~~~---~--~~ You

Re: Connecting to the database directly and cron jobs

2006-06-24 Thread RosSoft
Also check http://groups.google.es/group/cake-php/browse_thread/thread/ff3ad3c9e1e40aab/522fa7b6d6c2c20c?q=cron&rnum=2#522fa7b6d6c2c20c --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to th

Re: Connecting to the database directly and cron jobs

2006-06-24 Thread RosSoft
Other approach is something like: http://rossoft.wordpress.com/2006/03/27/poor-mans-cron-component/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@goo

Re: Connecting to the database directly and cron jobs

2006-06-24 Thread Matt
It seems that Rails too, and perhaps MVC frameworks in general, have similiar issues with cron jobs: http://www.rubyinside.com/rails-cron-a-way-to-run-background-tasks-with-your-rails-app-53.htm --~--~-~--~~~---~--~~ You received this message because you are

Re: Connecting to the database directly and cron jobs

2006-06-24 Thread Langdon Stevenson
I too will soon be requiring this sort of functionality. I would also value a definitive answer to the question. Regards, Langdon Matt wrote: > I've recently started porting a site to CakePHP and have a couple of > questions regardin

Re: Connecting to the database directly and cron jobs

2006-06-23 Thread RosSoft
Do a cron job calling wget http://yourdomain/mail_system/index/SECRET_KEY it will execute the mailsystemcontroller, index action and only will do something if the SECRET_KET is ok --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: Connecting to the database directly and cron jobs

2006-06-23 Thread BlenderStyle
What version of PHP are you using? Can you post mail_system.php? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from t

Re: Connecting to the database directly and cron jobs

2006-06-23 Thread Matt
Well I've converted the class into a component and got it talking to the database fine using a model but it doesn't look like it's going to be so easy getting cron to work. I tried executing the class from the command line, which is what cron would do, and got the error: PHP Fatal error: Class

Re: Connecting to the database directly and cron jobs

2006-06-23 Thread BlenderStyle
That's an interesting problem and I'm bound to run into on my own soon. Check simple things like the permissions of the script you're trying to execute with php. Do chmod 777 script.php to test that. I would also try creating your class as a controller in CakePHP with a model and a view. The view

Connecting to the database directly and cron jobs

2006-06-23 Thread Matt
I've recently started porting a site to CakePHP and have a couple of questions regarding cron jobs. The site had a class for managing emails that would connect to the database and add messages to a queue table. A cron job calling a PHP script would use this class to dispatch messages at re