Invoking CodeIgniter from shell script |
[eluser]therendStudio[/eluser]
Hello. I got this situation: I'm making a data processing application and have different models about that made into CI. However there's a cron driven data processing involved. So the question is - is there a simple way considered about invoking the framework from a shell php script so that it runs a custom "shell" controller (not web accessible) with params passed. I mean aside from having to duplicate half the launching code and modify it in order to be able to load certain models from the sell script... Thanks
[eluser]pistolPete[/eluser]
If you do a forum search for "cron", you come across this: http://codeigniter.com/wiki/CI_on_the_command_line/ http://codeigniter.com/wiki/Category:Adv...ronScript/ http://ellislab.com/forums/viewthread/102902/ http://phpstarter.net/2008/12/run-codeig...-line-ssh/
[eluser]therendStudio[/eluser]
Oh, thanks a lot! I did make a search but I included other items in it and couldn't find anything. Also I emphasized shell since cron was just a variant of the shell invoking... Thanks
[eluser]Charles Garrison[/eluser]
I followed the directions from the link below and was able to get a cron working using CodeIgniter... Now, I'm trying to get an email pipe to CodeIgniter working using the same technique and various others, but so far no luck. http://codeigniter.com/wiki/Category:Adv...ronScript/ |
Welcome Guest, Not a member yet? Register Sign In |