Welcome Guest, Not a member yet? Register   Sign In
CLI (Command Line Interface) Cron Daemon not getting correct controller
#1

[eluser]duffy0[/eluser]
I have almost successfully setup a Cron job on my server, but I cannot call the correct controller.

When I remove the CLI only if statement I can successfully run the script from my browser.
Code:
// Make sure the request is being made by a CRON Job
if ( ! $this->input->is_cli_request()) exit('Only CLI access allowed');

I am having the output being emailed by the Cron Daemon. I have tried these commands and these are my results.

Job:
Code:
*/15 * * * * php www/index.php cron
Result:
I get the HTML output of the default controller and not my Cron controller.

Job:
Code:
*/15 * * * * php www/index.php cron index
Result:
I get the HTML output of the default controller and not my Cron controller.

Job:
I updated the config file to allow query strings.
Code:
*/15 * * * * php www/index.php?c=cron
Result:
Code:
Status: 404 Not Found
X-Powered-By: PHP/5.2.17
Content-type: text/html

No input file specified.

I am not sure what I am doing wrong. Thanks for the help.




Theme © iAndrew 2016 - Forum software by © MyBB