Welcome Guest, Not a member yet? Register   Sign In
cron job problems
#7

[eluser]thunder uk[/eluser]
If your server has wget on it, you could set up a crontab entry that calls:

wget http://www.mydomain.com/cron/

which would execute your cron controller as expected (ie in a browser-type environment rather than command line script)

Having said that, I agree with the above comment about putting a simple php script together to run from the crontab - using CI to execute a scheduled task would, in most cases I believe, be overkill.

On the other hand, using a "cron" controller in CI could serve additional purposes. You could, for instance, run the cron'd process out-of-schedule by using an img src="/cron/" or via an ajax style request should you ever need to (and assuming your setup doesn't allow for using exec() or backticks etc).

Depends on what you want to accomplish really. Smile


Messages In This Thread
cron job problems - by El Forum - 11-14-2007, 07:45 AM
cron job problems - by El Forum - 11-14-2007, 08:03 AM
cron job problems - by El Forum - 11-14-2007, 08:06 AM
cron job problems - by El Forum - 11-14-2007, 08:10 AM
cron job problems - by El Forum - 11-14-2007, 08:11 AM
cron job problems - by El Forum - 11-14-2007, 08:20 AM
cron job problems - by El Forum - 11-14-2007, 08:43 AM
cron job problems - by El Forum - 11-14-2007, 08:44 AM
cron job problems - by El Forum - 11-14-2007, 08:48 AM
cron job problems - by El Forum - 11-14-2007, 08:56 AM
cron job problems - by El Forum - 11-14-2007, 09:12 AM
cron job problems - by El Forum - 11-14-2007, 09:33 AM
cron job problems - by El Forum - 11-14-2007, 09:51 AM
cron job problems - by El Forum - 11-14-2007, 09:58 AM
cron job problems - by El Forum - 11-14-2007, 11:31 PM
cron job problems - by El Forum - 11-15-2007, 01:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB