• Welcome to Sitemap Generator Forum.
 

Sheduled task?

Started by yessir, May 27, 2011, 07:32:36 AM

Previous topic - Next topic

yessir

Hi

Finally after resolvning the timeout-issue on my win2003 server i've tried to add a sheduled task to run the sitemap script.
I've added the script but it doesn't generate anything.
Is there a guide on how to successfully add a sheduled task in windows server?

Thanks.

XML-Sitemaps Support

Hello,

exact details depend on the server configuration, the script that should be started with scheduled task is /generator/runcrawl.php

yessir

I've added a command prompt.
Under "Run" i have set "D:\Domains\mysite.com\wwwroot\generator\runcrawl.php"
Under "Start in" i have set "D:\Domains\mysite.com\wwwroot\generator/"

" = is not saved
mysite.com = dummy name

Is there something i might be missing or is there another obvious error? For example "Start in" maybe should be IE? hehe
Thanks for the help i can get

XML-Sitemaps Support

Hello,

usually you need to specify path to php interpreter before generator's runcrawl.php. In linux it's:

/usr/bin/php /path/to/generator/runcrawl.php

In Windows it differs, might be something like:
C:\PHP\php.exe D:\Domains\mysite.com\wwwroot\generator\runcrawl.php

yessir

Ah, thanks!

I'll try adding the exe location first. I've sheduled it to run tonight so I guess I'll get back tomorrow ;)

I've also added a 5 hour CGI-timeout limit just to be sure.

yessir

I forgot to get back but It's now working. I've added the php exe first with "" around and then the path to crawl php. I had to specify "start in" to the generator folder. I also extended the CGI timeout. Thanks for the help
My site crawls in aprox 3 hours every day, not fast but ok.