XML Sitemaps Generator

Author Topic: Cross server cron for runcrawl.php  (Read 6619 times)

deluxe.private.hire

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 13
Cross server cron for runcrawl.php
« on: January 16, 2013, 01:23:59 PM »
Here we go!

I have a website on server1. The provider does not provide a 'cron' system for automation. PHP works well and the sitemap generator works smoothly, no problems.

I also have another account, on another server, Server2, allows me to make 'cron-jobs'.

Before you suggest moving the website, I can but I won't because server2 and its content is up for sale as a part of the business I'm selling.

So, I need to create a cron job on server2 that activates the SITEMAP GENERATOR on server1. Creating the cron job is easy.

What I need is a piece of code (must be command line code to call runcrawl.php) that will call the (runcrawl.php) sitemap generator from server2 where the cron job will activate, actuating sitemap generator on server1 for a website ON server1.

I aim to call the scripts using php so the code must be compatible.

Can anyone help me here please?


XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10625
Re: Cross server cron for runcrawl.php
« Reply #1 on: January 17, 2013, 12:53:29 PM »
Hello,

you can call this URL in your external croon task:
http://yourdomain1.com/generator/index.php?op=crawlproc&resume=1
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.

 

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