CodeIgniter Forums
CLI - CodeIgniter on the Command Line - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: CLI - CodeIgniter on the Command Line (/showthread.php?tid=13909)

Pages: 1 2 3 4 5 6


CLI - CodeIgniter on the Command Line - El Forum - 05-31-2011

[eluser]Jim Bodine[/eluser]
Well, after hours of searching with codeignitor cron parameters cli and finding nothing I posted in this thread. Ready to give up for the night I figured WTF, why not see whats in the forums for just cron (plain and simple) and I find my answer! lol The link to the bug mentioned below was my issue. After making that change parameters work from both the command line and from crontab (via Cpanel)

[quote author="bubbafoley" date="1305771650"]you can run CI directly as a cron job.

http://ellislab.com/codeigniter/user-guide/general/cli.html

although, there is a bug when running cli from cron. you'll probably need to apply this patch for now: https://bitbucket.org/ellislab/codeigniter-reactor/issue/274/codeigniter-cli[/quote]


CLI - CodeIgniter on the Command Line - El Forum - 07-25-2011

[eluser]Krynble[/eluser]
Phil, is it just for me or your library got included into the Reactor as of version 2.0.1+?

I needed a crontab routine and tested it via CLI using php index.php statistics update.

Everything works like a charm, I believe it's your library, and you deserve congratulations, it's just awesome, I love using CLI for PHP and now I'm also able to use CI when writing my code.

Good job, dude!