• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
External Cron Job with CI

Hello friends. I have a job developed with CI and it's amazing. i have Cron Job that need to execute some page in my site. The problem is the Cron Job need the path with the file.php, and with my .htacess rule I eliminate that. How can I call some page and use all the process of MVC?


[eluser]Sam Dark[/eluser]
Use wget.

HI Sam. I tried with the wget, but he does't work.

My Cron:
wget -O /dev/null http://www.domain.com.br/gerador/

And the output:
--15:45:33--  http://www.domain.com.br/index.php/gerador/
          => `index.html'
Resolving www.domain.com.br...
Connecting to www.domain.com.br[]:80...
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
index.html: Permission denied

Cannot write to `index.html' (Permission denied).

Maybe it's the .htacess?

[eluser]Sam Dark[/eluser]
wget have no rights to write to the directory you specified. The job itself was executed. Try -q.

Checkout this thread for a cron bootstrapper.


I will be implementing this when it comes time to setup my cronies Big Grin

Thanks Sam and drewbee. Now it's running fine.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.