Welcome Guest, Not a member yet? Register   Sign In
CLI - CodeIgniter on the Command Line
#51

[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-gui...l/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/codeignit...gniter-cli[/quote]
#52

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




Theme © iAndrew 2016 - Forum software by © MyBB