Welcome Guest, Not a member yet? Register   Sign In
Run CI from cron
#1

[eluser]Tri Dang[/eluser]
Hello everybody,

For example, I have a Cron controller like:

Code:
class Cron extends Controller{
  function my_method(){
  }
}

I can call methods of this controller from web browsers with no problem. But now I want to call it from cron jobs. Assume the path to root directory (which stores system folder) is /path. What do I put in cron to call my_method() (and load all CI stuff)?

Thanks in advance.


Messages In This Thread
Run CI from cron - by El Forum - 02-09-2009, 12:16 PM
Run CI from cron - by El Forum - 02-09-2009, 12:46 PM
Run CI from cron - by El Forum - 02-09-2009, 02:05 PM
Run CI from cron - by El Forum - 02-09-2009, 02:22 PM
Run CI from cron - by El Forum - 02-09-2009, 05:36 PM
Run CI from cron - by El Forum - 02-09-2009, 07:59 PM
Run CI from cron - by El Forum - 02-11-2009, 04:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB