CodeIgniter Forums
External Cron Job with CI - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: External Cron Job with CI (/thread-11514.html)



External Cron Job with CI - El Forum - 09-11-2008

[eluser]marcoslavorato[/eluser]
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?

Thanks,
Marcos


External Cron Job with CI - El Forum - 09-11-2008

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


External Cron Job with CI - El Forum - 09-11-2008

[eluser]marcoslavorato[/eluser]
HI Sam. I tried with the wget, but he does't work.

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

And the output:
Code:
--15:45:33--  http://www.domain.com.br/index.php/gerador/
          => `index.html'
Resolving www.domain.com.br... 64.13.232.208
Connecting to www.domain.com.br[64.13.232.208]:80...
connected.
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?


External Cron Job with CI - El Forum - 09-11-2008

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


External Cron Job with CI - El Forum - 09-11-2008

[eluser]drewbee[/eluser]
Checkout this thread for a cron bootstrapper.

http://ellislab.com/forums/viewthread/88635/

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


External Cron Job with CI - El Forum - 09-11-2008

[eluser]marcoslavorato[/eluser]
Thanks Sam and drewbee. Now it's running fine.