2
Vote

Duplicate site name in url to wake up

description

Hi,
I try to use this wakeup application, and when I execute it there was a "Cannot reach site" error. That was because the name of the site was duplicated.
For example:
SPWakeUp.exe -site:http://misite.server.com/sites/theSite
It tries to wake up the url:
http://misite.server.com/sites/theSite/sites/theSite/
 
I solve it adding a function called ExtractServerName and creating the full path with this.
Also I add two new parameters:
sitesFile: Filename with the sites to include. Default: sites.conf.
excludesFile:Filename with the sites to exclude. Default: exclude.conf.
It helps me to have diferents batch programs that wakes up different sites without the need to have one folder for each wake up configuration.
 
Hope this helps.
 
I attached the file Program.cs.
 
Note: for job policies, I add my name and my company into the code at line 109, of course you can remove it.
 
Sincerely,
 
Josep Oncins

file attachments

comments