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 changed the path to only
include the directory "$HOME/html/cake/console/" and it worked.

Second, I started getting another error: ".../console/cake: line 30:
exec: php: not found". This meant that my command wasn't turning up
the php cli. It turns out that again, there should only be a reference
to the directory "/web/cgi-bin/".

Other issue: Because the command only let's you specify the directory,
not the specific interpreter file, I couldn't set it to php5. It
defaults to php 4, which meant for some small adjustments in my
models.

Other (non) issue: I still get the error: "TERM environment variable
not set." From what I have read, this is a problem with godaddy's php
build. It doesn't interfere with my shells so I'm going to forget
about it.

My final command looked like (no time setting since godaddy compiles
it with the time in a seperate field):
"$HOME/html/vendors/cakeshell" report -cli "/web/cgi-bin/" -console
"$HOME/html/cake/console/" -app "$HOME/html/app/"

Maybe this will be of some use to others.

Josh

On Aug 6, 11:39 pm, JamesF <[email protected]> wrote:
> 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 <[email protected]> wrote:
>
> > Hi,
>
> > I have been trying to get a shell script to run as a cron job on
> >Godaddyfor 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
> > -console /home/content/.../html/cake/console/cake -app /home/
> > content/.../html/app
>
> > Error: /home/content/.../html/vendors/cakeshell: line 12: cake:
> > command not found
>
> > What can I try to get this working? Will it work withgodaddy?
>
> > Any ideas would be much appreciated. Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to