Friday, May 3, 2013

cron job command

Greetings,
I'm trying to make a cron job using godaddy's Cron Job Manager. I am
trying to figure out the proper command to run an action at the
specified time

Godaddy tells me that in order to run a PHP script via Cron, you must
specify the interpreter manually. For example:
/web/cgi-bin/php5 "$HOME/html/test.php5"

In this example, "$HOME" represents the full path to my Shared Hosting
account and html is the folder that contains my cake folders. My setup
has no app folder.

I am confused by the fact that the action is part of the controller
and hence there is no way to indicate the action directly as part of a
file path. Is there a way to complete the command to run the script?
Perhaps something like:

/web/cgi-bin/php5 "$HOME/html/path to controller/action"

--
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 cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: