CodeIgniter Forums
Cron Fails while getting records - 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: Cron Fails while getting records (/thread-21550.html)



Cron Fails while getting records - El Forum - 08-13-2009

[eluser]saidai jagan[/eluser]
There is a problem while running the function through cron.
If I run the function manually in browser as
www.mydomain.com/cron/getvalues/ it returns 500 rows,
but while running through cron system (Through machine) as
40 15 * * * /bin/usr/lynx/ www.mydomain.com/index.php?cron/getvalues/
it returns only 80 records.
wat is the problem ???


Cron Fails while getting records - El Forum - 08-13-2009

[eluser]davidbehler[/eluser]
Posting once should be enough:

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


Cron Fails while getting records - El Forum - 08-13-2009

[eluser]saidai jagan[/eluser]
oh sorry.can u tell me a solution for this ??


Cron Fails while getting records - El Forum - 08-13-2009

[eluser]davidbehler[/eluser]
Nope, sorry.
I haven't had the pleasure to work with cron jobs yet Wink


Cron Fails while getting records - El Forum - 08-13-2009

[eluser]ggoforth[/eluser]
Your post is a bit to vague. Perhaps you could post some code for us to examine.

Greg


Cron Fails while getting records - El Forum - 08-13-2009

[eluser]louis w[/eluser]
To execute and http request through cron, this is the command I use:

/usr/local/bin/wget -O - http://www.domain.com/do/whatever

Try this and see what happens, wget might be in a different location on your server.

The data set returned by cron should not be any different then making the request directly. If it really is, I would suggest turning on debugging and start writing your sql query and return set to the log for comparison.