Welcome Guest, Not a member yet? Register   Sign In
Cron Fails while getting records
#1

[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 ???
#2

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

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

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

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

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

Greg
#6

[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.




Theme © iAndrew 2016 - Forum software by © MyBB