CRON runs but doesn't get passed parameters |
[eluser]monoclonal[/eluser]
Hi all, I am trying to setup a CRON in cpanel. I have it 'working' in that the CRON runs but instead of getting my actual cron controller called I only get the index.php / default controller called. I can run the cron file using the url eg; Quote:www.site.com/cron_controller/cron_functionBut when I run the cron in cpanel I only get the output of the default controller. Here is my cron job: Quote:/usr/bin/php /home/user_directory/public_html/index.php cron_controller cron_function Any thoughts?
[eluser]ortwin.van.vessem[/eluser]
Have a look at the following blog post: http://stevethomas.com.au/php/how-to-run...niter.html
[eluser]monoclonal[/eluser]
Thanks, but I can get php scripts to run, it's just the mapping of the controller/ method that isn't working. I am also posting this on whirlpool: http://forums.whirlpool.net.au/forum-rep...?t=2138669
[eluser]LifeSteala[/eluser]
Hello, Please see my post reply here as I believe it will answer your question. Cron Jobs command with parameters Hope that helps. LS
[eluser]ivantcholakov[/eluser]
@monoclonal I use the Hack 4 "Running CodeIgniter from the Command Line", described here: http://net.tutsplus.com/tutorials/php/6-...e-masters/ I have not tested this hack with cpanel, but it is worth for you to try it.
[eluser]monoclonal[/eluser]
[quote author="LifeSteala" date="1376112549"]Hello, Please see my post reply here as I believe it will answer your question. Cron Jobs command with parameters Hope that helps. LS[/quote] This is exactly what I was looking for! Problem SOLVED! Thank you kind Steala |
Welcome Guest, Not a member yet? Register Sign In |