Welcome Guest, Not a member yet? Register   Sign In
Passing in URL as parameter in CLI
#4

I'm having trouble executing cronjobs even with a very basic setup of controller and method.
Like this:
Code:
/bin/php ./index.php cronjobs cleanup
In the old version of my website (before I started to use CI), this command line was:
Code:
/bin/php ./cronjobs/cleanup.php
And that worked fine. But in the index.php controller method format, the only thing that happens is that index.php is executed (I get html output), and my Cronjobs controller and cleanup method are completely ignored.

Would it do any good if I formatted my CI cronjob like this:
Code:
/bin/php ./index.php/cronjobs/cleanup
In other words: is that also a valid format for cronjobs?
Reply


Messages In This Thread
RE: Passing in URL as parameter in CLI - by Wouter60 - 07-21-2015, 12:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB