XML Sitemaps Generator

Author Topic: automatic cronjob  (Read 16496 times)

pay12

  • Registered Customer
  • Approved member
  • *
  • Posts: 4
automatic cronjob
« on: September 24, 2008, 11:24:29 PM »
how can the cronjob via an external provider cronjob start automatically approved?

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10621
Re: automatic cronjob
« Reply #1 on: September 25, 2008, 10:22:23 PM »
Hello,

the cron job should be setup in hosting control panel. In case if you want to execute generator via URL from external site you can use "domain.com/generator/index.php?op=crawlproc" link (although password protection in sitemap generator config should be disabled for that).
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.

pay12

  • Registered Customer
  • Approved member
  • *
  • Posts: 4
Re: automatic cronjob
« Reply #2 on: September 26, 2008, 06:09:38 PM »
so:

[external links are visible to admins only]


???

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10621
Re: automatic cronjob
« Reply #3 on: September 26, 2008, 08:02:34 PM »
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.

kleinholz

  • Registered Customer
  • Approved member
  • *
  • Posts: 3
Re: automatic cronjob
« Reply #4 on: April 01, 2009, 07:09:13 PM »
What about adding a feature to offer a way to call cronjob-script from external-cronjob-service AND having password-protection enabled? I dont think its smart to switch off pw-protection globally and permanent... just to run the cronjobs...

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10621
Re: automatic cronjob
« Reply #5 on: April 02, 2009, 12:02:54 AM »
That is a good point.
You can manually create another php file in generator folder with the filename of your choice (so noone else knows it) with content:
Code: [Select]
<?php
$op 
$_REQUEST['op'] = 'crawlproc';
$_REQUEST['bg'] = $_REQUEST['resume'] = true;
include 
'./index.php';
?>

and then use it for external web based cron service.
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.

kleinholz

  • Registered Customer
  • Approved member
  • *
  • Posts: 3
Re: automatic cronjob
« Reply #6 on: April 02, 2009, 07:30:33 PM »
Thanks! I will try this... I just added the external cronjob and this script!

xipe

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 18
Re: automatic cronjob
« Reply #7 on: September 17, 2009, 07:30:24 PM »
Hi,

I'm very happy that the new version of PHP Sitemap Generator works on my webspace (Mijndomein.nl)
It crashed with the previous version, but now it works fine.

Now I would like to run it from a remote cron using wget.
How can I do this? I tried to run runcrawl.php in a cron, but it is protected, I guess.

Any help would be appreciated very much.

Cheers,
Robert


XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10621
Re: automatic cronjob
« Reply #8 on: September 18, 2009, 02:43:24 PM »
Hello,

you can create a new file for that as described above: http://www.xml-sitemaps.com/forum/index.php/topic,2274.msg10298.html#msg10298
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.

xipe

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 18
Re: automatic cronjob
« Reply #9 on: September 18, 2009, 05:26:22 PM »
Dear Oleg,

Thank you very much for the solution to run the remote cron.

I have one more problem left: the urllist.txt is written to the data folder instead of the root of my website.
In my config file I have this:

'xs_sm_text_filename' => '/storage/mijndomein/users/061775/public/sites/www.onestop-travel.nl/urllist.txt',
'xs_sm_text_url' => '[external links are visible to admins only]',

Still it is written to the wrong folder. How can I solve this?

Best regards,
Robert

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10621
Re: automatic cronjob
« Reply #10 on: September 20, 2009, 08:58:31 AM »
Hello,

if you are running sitemap generator 3.0, you should change configuration in generator/data/generator.conf file:
   <option name="xs_sm_text_filename">........</option>
   <option name="xs_sm_text_url">.....</option>
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.

xipe

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 18
Re: automatic cronjob
« Reply #11 on: September 20, 2009, 10:51:13 AM »
Dear Oleg,

Thank you very much for this information.
It works fine now!
Solution was setting the xs_sm_text_filename value.

I have a question about the 'old' config.inc.php
Do I still need this file, or is generator.conf containing all the info?
Like the loogin information, I wonder where this is stored now.

Best regards,
Robert

 

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