Re: Console, shell and cronjob woes

2015-06-10 Thread phpMagpie
@Andras: You should avoid using 777 as that gives read/write/execute access to the world, which is a major security concern. *Further information on this:* When a web page loads, any files written/updated within tmp folders are given *apache:apache* (user:group) access. When a cronjob runs,

Re: Console, shell and cronjob woes

2015-06-10 Thread Andras Kende
Hi Paul, The 777 indeed the quick fix of doing it :( try the official: http://book.cakephp.org/2.0/en/installation.html#permissions http://book.cakephp.org/2.0/en/installation.html#permissions or https://www.google.com/#q=cakephp+tmp+777 https://www.google.com/#q=cakephp+tmp+777 Andras

Re: Console, shell and cronjob woes

2015-06-09 Thread phpMagpie
*Update: * As I could run this as root I decided to create a cronjob as root and this works. However, I want to create cronjobs under each user on the server rather than as root. So I now need to know why CakePHP/Croogo behaves differently depending on which user is running a cronjob even

Cake console shell error - not able to see App

2014-01-27 Thread Nif
Hi All, I am new to the cake console and especially to creating a shell to run in/on it. The research I have done says it should be possible to call App from the shell and the examples I have seen use code like the below to do so. ?php App::uses('AppShell', 'Console/Command');

Re: Cake console shell error - not able to see App

2014-01-27 Thread Nif
OK... it was me. All me. I was missing a semi-colon ;p I do however have a new issue. I manage to call in my Component, but that component calls one of my controllers and this is now throwing an error when running in the console. I need all the functionality to be accessible to both the web

Creating full url from CakePHP 2.1.2 Console Shell

2012-06-22 Thread Matt
I am trying to send an email from CakePHP 2.1.2 via console shell (eventually by a cron job). The view I am sending is a calendar with links back to the applications web page. The problem I am finding is that the urls do not include the correct path and from what I have read it is because

Re: Creating full url from CakePHP 2.1.2 Console Shell

2012-06-22 Thread AD7six
On Friday, 22 June 2012 17:44:27 UTC+2, Matt wrote: I am trying to send an email from CakePHP 2.1.2 via console shell (eventually by a cron job). The view I am sending is a calendar with links back to the applications web page. The problem I am finding is that the urls do not include

Re: Creating full url from CakePHP 2.1.2 Console Shell

2012-06-22 Thread Matt
:08:51 AM UTC-5, AD7six wrote: On Friday, 22 June 2012 17:44:27 UTC+2, Matt wrote: I am trying to send an email from CakePHP 2.1.2 via console shell (eventually by a cron job). The view I am sending is a calendar with links back to the applications web page. The problem I am finding

Re: Creating full url from CakePHP 2.1.2 Console Shell

2012-06-22 Thread Matt
via console shell (eventually by a cron job). The view I am sending is a calendar with links back to the applications web page. The problem I am finding is that the urls do not include the correct path and from what I have read it is because there is no request object since I am using

Cake console shell

2010-06-04 Thread Edwin
Hi all, When trying to run /path_to/cake/console/cake mail in shell I get the following error: Error: Class MailShell could not be loaded. Can anybody perhaps point me in the right direction why i get this error? Thanks! Check out the new CakePHP Questions site http://cakeqs.org and help

Re: Cake console shell

2010-06-04 Thread euromark
just type cake and you will see the available shells yours is not in that list i guess On 4 Jun., 12:20, Edwin edwink...@gmail.com wrote: Hi all, When trying to run /path_to/cake/console/cake mail in shell I get the following error: Error: Class MailShell could not be loaded. Can anybody

Re: Cake console shell

2010-06-04 Thread Edwin
Thanks, got it working! I forgot to add the -app parameter. Is there any parameter or way that i can dissable any output from the console? E.g. don't display the Welcome to CakePHP v1.3.0 Console etc. Thanks again On Jun 4, 12:38 pm, euromark dereurom...@googlemail.com wrote: just type cake

Re: Cake console shell

2010-06-04 Thread euromark
why does it bother you? :) just ignore it On 4 Jun., 13:59, Edwin edwink...@gmail.com wrote: Thanks, got it working! I forgot to add the -app parameter. Is there any parameter or way that i can dissable any output from the console? E.g. don't display the Welcome to CakePHP v1.3.0 Console

Re: Cake console shell

2010-06-04 Thread euromark
PS: you would need to override startup() in all shell scripts - even the core ones... On 4 Jun., 15:27, euromark dereurom...@googlemail.com wrote: why does it bother you? :) just ignore it On 4 Jun., 13:59, Edwin edwink...@gmail.com wrote: Thanks, got it working! I forgot to add the

Re: Cake console shell

2010-06-04 Thread Edwin
Because I'm using it for email piping. When I'm running the shell it will reply the email with the CakePHP Console message. Will give the overriding startups a try.. but there must be a better solution? Thanks! On Jun 4, 3:27 pm, euromark dereurom...@googlemail.com wrote: why does it bother

console shell

2010-01-14 Thread alberto
Hi, php.exe C:/xampp/htdocs/cakeblog/cake/console/cake.php myfunction in the shell I import a model like $uses = array('Mymodel'); when I run this into my prompt print an error Fatal error: Class 'Controller' not fount in C:\xampp\htdocs\cakeblog \app\ap_controller.php on line 2 any ideas?

Re: console shell

2010-01-14 Thread John Andersen
Please confirm that the error message states ap_controller?? Naming issue?? Enjoy, John On Jan 14, 11:11 am, alberto alberto.pri...@gmail.com wrote: Hi, php.exe C:/xampp/htdocs/cakeblog/cake/console/cake.php myfunction in the shell I import a model like $uses = array('Mymodel'); when I

Re: console shell

2010-01-14 Thread alberto
excuse was a mistake. is app_controller On 14 Gen, 10:48, John Andersen j.andersen...@gmail.com wrote: Please confirm that the error message states ap_controller?? Naming issue?? Enjoy,    John On Jan 14, 11:11 am, alberto alberto.pri...@gmail.com wrote: Hi, php.exe

Re: How to use Core Helpers in a console/shell script

2008-12-05 Thread Adam Royle
. -- View this message in context:http://n2.nabble.com/How-to-use-Core-Helpers-in-a-console-shell-scrip... Sent from the CakePHP mailing list archive at Nabble.com. -- View this message in context:http://n2.nabble.com/How-to-use-Core-Helpers-in-a-console-shell-scrip... Sent from the CakePHP

Re: How to use Core Helpers in a console/shell script

2008-12-05 Thread RyOnLife
-td1556101.html#a1559299a try. Any other ideas for me? Thanks. -- View this message in context:http://n2.nabble.com/How-to-use-Core-Helpers-in-a-console-shell-scrip... Sent from the CakePHP mailing list archive at Nabble.com. -- View this message in context:http://n2.nabble.com/How

How to use Core Helpers in a console/shell script

2008-12-04 Thread RyOnLife
-in-Console-td1556101.html#a1559299 a try. Any other ideas for me? Thanks. -- View this message in context: http://n2.nabble.com/How-to-use-Core-Helpers-in-a-console-shell-script-tp1616804p1616804.html Sent from the CakePHP mailing list archive at Nabble.com

Re: How to use Core Helpers in a console/shell script

2008-12-04 Thread Adam Royle
-to-use-Core-Helpers-in-a-console-shell-scrip... Sent from the CakePHP mailing list archive at Nabble.com. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php

Re: How to use Core Helpers in a console/shell script

2008-12-04 Thread RyOnLife
also gave the suggestions inhttp://n2.nabble.com/Load-Helper-in-Console-td1556101.html#a1559299a try. Any other ideas for me? Thanks. -- View this message in context:http://n2.nabble.com/How-to-use-Core-Helpers-in-a-console-shell-scrip... Sent from the CakePHP mailing list archive