cakephp 2.5 cron jobs

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

cakephp 2.5 cron jobs

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 cakephp shell script from a cron job ?

thanks in advance.


  

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: cakephp 2.5 cron jobs

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 cron as user ( user_name ), and may be you use web app too (web app runs with user's rights  for web server ( www, or httpd  ) ) and by default each time when you run app you get temporary files with different permissions.


 

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: cakephp 2.5 cron jobs

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 <[hidden email]>:
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 cron as user ( user_name ), and may be you use web app too (web app runs with user's rights  for web server ( www, or httpd  ) ) and by default each time when you run app you get temporary files with different permissions.


 

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.



--
Igor Padovan da Silva
about.me/igorpadovan

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: cakephp 2.5 cron jobs

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/to/app your_shell 

2015-11-21 4:40 GMT-03:00 Ruslan <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="ZA8BYr51FwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">greenpan...@...>:
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 cron as user ( user_name ), and may be you use web app too (web app runs with user's rights  for web server ( www, or httpd  ) ) and by default each time when you run app you get temporary files with different permissions.


 

--
Like Us on FaceBook <a href="https://www.facebook.com/CakePHP" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fwww.facebook.com%2FCakePHP\46sa\75D\46sntz\0751\46usg\75AFQjCNG_OVGPrsW2S4xCvT0yb2leRWBsQg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fwww.facebook.com%2FCakePHP\46sa\75D\46sntz\0751\46usg\75AFQjCNG_OVGPrsW2S4xCvT0yb2leRWBsQg&#39;;return true;">https://www.facebook.com/CakePHP
Find us on Twitter <a href="http://twitter.com/CakePHP" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Ftwitter.com%2FCakePHP\46sa\75D\46sntz\0751\46usg\75AFQjCNGm99t3RztzLJAbpv22cUAOb0aFHw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Ftwitter.com%2FCakePHP\46sa\75D\46sntz\0751\46usg\75AFQjCNGm99t3RztzLJAbpv22cUAOb0aFHw&#39;;return true;">http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="ZA8BYr51FwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">cake-php+u...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="ZA8BYr51FwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">cake...@....
Visit this group at <a href="http://groups.google.com/group/cake-php" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://groups.google.com/group/cake-php&#39;;return true;" onclick="this.href=&#39;http://groups.google.com/group/cake-php&#39;;return true;">http://groups.google.com/group/cake-php.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--
Igor Padovan da Silva
<a href="http://about.me/igorpadovan" style="margin:0px;padding:0px;border:0px none;outline:0px none;font-family:proxima-nova-1,proxima-nova-2,Tahoma,Helvetica,Verdana,sans-serif;vertical-align:baseline;color:rgb(43,130,173);text-decoration:initial;line-height:16px" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fabout.me%2Figorpadovan\46sa\75D\46sntz\0751\46usg\75AFQjCNE2lczZqbZCS__GeYP0aV476hvjaA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fabout.me%2Figorpadovan\46sa\75D\46sntz\0751\46usg\75AFQjCNE2lczZqbZCS__GeYP0aV476hvjaA&#39;;return true;">about.me/igorpadovan

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.