Welcome Guest, Not a member yet? Register   Sign In
Invoking CodeIgniter from shell script
#1

[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
#3

[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
#4

[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/




Theme © iAndrew 2016 - Forum software by © MyBB