automatic cronjob
« on: September 25, 2008, 12:24:29 AM »
how can the cronjob via an external provider cronjob start automatically approved?
Re: automatic cronjob
« Reply #1 on: September 25, 2008, 11: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).
Re: automatic cronjob
« Reply #2 on: September 26, 2008, 07:09:38 PM »
so:

[ External links are visible to forum administrators only ]


???
Re: automatic cronjob
« Reply #3 on: September 26, 2008, 09:02:34 PM »
No, just [ External links are visible to logged in users only ]
Re: automatic cronjob
« Reply #4 on: April 01, 2009, 08: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...
Re: automatic cronjob
« Reply #5 on: April 02, 2009, 01: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.
Re: automatic cronjob
« Reply #6 on: April 02, 2009, 08:30:33 PM »
Thanks! I will try this... I just added the external cronjob and this script!

xipe

*
  • *
  • 25
Re: automatic cronjob
« Reply #7 on: September 17, 2009, 08: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

xipe

*
  • *
  • 25
Re: automatic cronjob
« Reply #9 on: September 18, 2009, 06: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 forum administrators only ]',

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

Best regards,
Robert
Re: automatic cronjob
« Reply #10 on: September 20, 2009, 09: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>

xipe

*
  • *
  • 25
Re: automatic cronjob
« Reply #11 on: September 20, 2009, 11: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