Bugs » Cron error

added on Jun 21, 2007 by Lanoy
I've got an error while rining linkex through cron

PHP Fatal error: Maximum execution time of 60 seconds exceeded in /usr/home/lanoy/links.wowtgp.com/www/links/index.php
on line 1

How can I solve it?
added on Jun 28, 2007 by Lanoy
Bump!
added on Jun 28, 2007 by v0id
thanks :)

I released a new version today in which I have increased the execution time.

Can I ask you how many links you have in LinkEX?

- v0id
added on Jun 28, 2007 by Lanoy
Thanx fro the reply.

Currently I have about 100 links.
added on Jun 28, 2007 by Lanoy
Just installed a new version. Everything works. Thanx.

BTW is there any way to receive an E:mail if some of the links become suspended during the linkcheck?
added on Jun 28, 2007 by v0id
What kind of cron are you using? When using it throug index.php?page=check you can enable the "Send email
summary:" under "Remote access settings" in the settings.

This will send you an email like this:

LinkEX verification output.
===========================

verification started on: 2007-06-28 13:15:50
verification ended on: 2007-06-28 13:15:51
verification elapsed 1 second

ID Old status => New status Old PR => New PR
========================================================
1002 OK => OK 0 => 0
1007 OK => OK 0 => 0
added on Jun 28, 2007 by v0id
oh and if you're using the commandline I usually setup my cron like this:

MAILTO=my@email.address
0 0 * * * /usr/local/bin/php /usr/home/me/my-site.com/linkex/php --verbose

Which will send me an email with the data dumped. Perhaps you dont need the MAILTO= thing above the entry, depends on
your systems setup
added on Jun 28, 2007 by Lanoy
Wow! I didn't know about these features. Where I can read about command line parameters?
added on Jul 3, 2007 by Lanoy
Bump
added on Jul 4, 2007 by v0id
lol thanks again.

There is not much info regarding the commandline. The only input it'll eat is the --verbose to make it output any info.
Other than that, i'll just verify all the links.

The index.php script can tell if it's called through the webserver or from commandline and reacts differently.

-v0id
added on Jul 28, 2007 by CONFUSED
so whats the cron to check and delete sites everyday at midnight not following rules without sending the email to you?
is it
0 0 * * * /usr/local/bin/php /usr/home/me/my-site.com/linkex/index.php --verify
or
0 0 * * * /usr/local/bin/php /usr/home/me/my-site.com/linkex/index.php --check
or
0 0 * * * /usr/local/bin/php /usr/home/me/my-site.com/linkex/index.php?page=verify
or
0 0 * * * /usr/local/bin/php /usr/home/me/my-site.com/linkex/index.php?page=check
added on Jul 30, 2007 by v0id
without sending emails to you, I'd do something like this:
0 0 * * * /usr/local/bin/php /usr/home/me/my-site.com/linkex/index.php > /dev/null

- v0id

Add reply

This thread has been inactive for more than 14 days, so it has been locked.

Feel free to create a new thread with your questions.