CodeIgniter Forums
CI and command line applications - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: CI and command line applications (/showthread.php?tid=15961)



CI and command line applications - El Forum - 02-20-2009

[eluser]Unknown[/eluser]
Greetings,

I am currently working on on rewriting a fairly large web application which was developed back in the days before there was stuff like PEAR, CI, and others around. The application consists of two parts, a web application itself which can be ported to use CI pretty good, but the other part of the app is a command line application which was used as cron job to perform various management tasks, e.g. some heavy cache stuff, as due to the nature of the application we had ~ 2GB of data that needed to be cache.

Now I am wondering, if anyone has experiences with CI and the command line? Can one simply include the CI web app in the command line app and call functions and libraries from there? Or would those apps have to be seperate CI apps?

I have read the Wiki articles on command line usage, and a bit unsure if this will work out well. Any recommendations or experiences from your apps would be welcome.

WkR,
Daniel


CI and command line applications - El Forum - 02-20-2009

[eluser]TheFuzzy0ne[/eluser]
Perhaps this will help you: http://www.larrykagan.com/blog/view/CodeIgniter-from-the-Command-Line


CI and command line applications - El Forum - 02-20-2009

[eluser]Unknown[/eluser]
Thank you very much. That article exactly matches with what we have Tongue Even the directory layout matches.

Thus: question answered, and this new user is happy. Thanks!


CI and command line applications - El Forum - 02-20-2009

[eluser]TheFuzzy0ne[/eluser]
Ah nuts! I didn't notice it was your first post... Welcome to the CodeIgniter community! Big Grin