Thursday, December 4, 2008

Re: Shell not working through Cron

Adding: "PATH=$PATH:/usr/local/bin" to /cake/console/cake took care of
everything. Thanks for your help :)


On Dec 2, 5:57 am, Matt Curry <m...@mcurry.net> wrote:
> To fix the TERM error wrap the cron job in a shell script with:
> TERM=linux
> export TERM
>
> I think you can also set the path to php in the shell script with:
> PATH=$PATH:/usr/local/bin
>
> Alternately you can edit /cake/console/cake and add the full path on
> line 32.
>
> -Matthttp://www.pseudocoder.com
>
> On Dec 2, 7:30 am, tekomp <btisch...@gmail.com> wrote:
>
> > I can run a shell just fine on the command line, but when I run the
> > same command via cron, I get the following error:
>
> > tput: no terminal type specified and no TERM environmental variable.
> > /www/example.com/cake/console/cake: line 32: exec: php: not found
>
> > Here is the command I'm running:
>
> > /www/example.com/cake/console/cake -app /www/example.com/app expiring -
> > days 300 > /dev/null
>
> > Any ideas on getting this to work through cron?
>
> > Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: