• Welcome to Sitemap Generator Forum.
 

This tool can be executed in command line mode only ??

Started by webmaster155, May 25, 2008, 02:24:18 PM

Previous topic - Next topic

webmaster155

Hi :)

I want to use the cron job.
My Cron Url: [ External links are visible to forum administrators only ]
on runcrwal.php site this message comes: This tool can be executed in command line mode only

What is the problem?

Thank you very much!


XML-Sitemaps Support

Hello,

the command line for cron task should be looking like:
/usr/local/bin/php /path/to/sitemap/runcrawl.php
the command line includes path, not the domain name.

webmaster155

sry i don't know ???

my command line:
/usr/local/bin/php /www/htdocs/w0086ca6/scootertuning.org/sitemap/runcrawl.php

and now    what do I do now?

is this now the cronjob link/url: /usr/local/bin/php /www/htdocs/w0086ca6/scootertuning.org/sitemap/runcrawl.php ?

in your demo version
the cron url run with the domain name: https://www.xml-sitemaps.com/generator-demo/runcrawl.php

so i think its perfect ;)

thank you for reply.

XML-Sitemaps Support

It's *not* a cron job when you run it as URL. You should setup scheduled task in hosting Control Panel instead of entering runcrawl URL in browser.

webmaster155

i cant use this url in my cronjob-service: /usr/local/bin/php /home/xmlsites/public_html/generator-demo/runcrawl.php

only urls with "http://" and SSH is not active on my webspace  :-\

   
can I use the cronjob or not without SSH ?

XML-Sitemaps Support

Cron job is not related to SSH. In case if your host doesn't allow to specify command lines for cron tasks, you can add the following to the top of runcrawl.php file:

<?php $_SERVER['REQUEST_METHOD']=true;?>

webmaster155

#6
ok thank you! ;)

now i have added the line in the runcrawl.php
but always this message come: This tool can be executed in command line mode only

i have now created a cronjob.php
the quellcode:

<?php
include '/www/htdocs/w0086ca6/scootertuning.org/sitemap/runcrawl.php';
?>

but it didn't work.. the same message come:
This tool can be executed in command line mode only


have you a other idea for using the automatic crawler??



:-\

webmaster155

i have the solution ;)


cronjob url: [ External links are visible to forum administrators only ]

then it works!
it's great :)

Please do it in your next version.

Thank your very much.

bye

dino

I got the same error message since the Update to newest version of the Sitemap Generator! I tried the suggested solutions but nothing will work for me...???

Any ideas?

Thanks  in advance
Dino


dino

Quote from: admin on July 13, 2009, 09:36:31 PM
Hello,

what is the command line you use for cron task?
I don't know, sorry. My hoster only provide a mask with some options. I don't know what they use in  the backend...


dino

Quote from: admin on July 15, 2009, 12:13:29 AM
What options do you define to run generator?
Login & Password -  URL without http:// - time - E-Mail address for notifications
These are all options i can set in the mask...