XML Sitemaps Generator

Author Topic: How to reduce runcrawl.php putput?  (Read 5570 times)

jknopp

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 27
How to reduce runcrawl.php putput?
« on: April 03, 2014, 05:43:20 PM »
Every night runcrawl.php is triggered by cron. All works fine except I pipe the output to email to keep an eye on problems. Unfortunately that makes for a 5MB email every morning which is rather slow to load. Any way to reduce the cron output frequency? I thought perhaps slowing the auto-save rate would tie-in but no luck.

If not, I'll just have to pipe stdout to devnull, and rely on any problems showing up in stderr, but i suspect that will only catch php level fatal errors, not code level problems.

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: How to reduce runcrawl.php putput?
« Reply #1 on: April 05, 2014, 12:43:35 PM »
Hello,

there is no such a function in generator itself, but you can try to pipe it with "tail" command to receive last N lines of output:
php runcrawl.php|tail
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

jknopp

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 27
Re: How to reduce runcrawl.php putput?
« Reply #2 on: April 05, 2014, 04:56:01 PM »
That's a smart idea, thx.

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2