Navigation:  Appendixes > Appendix B  Scheduling Projects > The Scheduling File >

Sample Scheduling File

Previous pageReturn to chapter overviewNext page

Here is a sample scheduling file that you can use as a starting point.

What this file does in order

1.Sets batch.log as the log file to use when running the scheduling file.
2.Sets a start time of 22:45. If the scheduling file is ran before this time, Website-Manager will wait until the start time to begin.
3.Sets the one and only project to run as sophtware.wsm. More projects could be ran by duplicating this whole section and inserting it below this one. The projects will run in the order they are inserted into the file.
4.The next sections indicate that module 2000 and task 1100 will have options ran on them. (2000 is the Ranking module, 1100 is the Check Positions task.)
5.The options that are going to be ran are New Ranking (nr) followed by a Notify (notify) option. The New Ranking is naming the ranking "auto_untitled" and overriding the default search engine and keyword categories, while the Notify is sending an email to michael@websitemanagementtools.com indicating the project name and time it completed.
6.The next section indicates we are changing to task 1200, which is the Reporting task under the Ranking module.
7.The options here run two reports and send an email notification when completed. This first report is a HTML report, while the second is a CSV report. Both are sent as attachments. The notification is sent to the same person as before, but indicates the reports we sent out instead. Usually you will only send one notification per project.
8.After the last notification email is sent, the program exits because there is nothing left to do.

Sample File

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE aAutoOptions>

<aAutoOptions>

<_LogFile>batch.log</_LogFile>

<aBatches>

<_StartTime>22:45</_StartTime>

<std::vector>

<aBatch _StartDelay="0" >

<_ProjectName>C:\Documents and Settings\kevin\My Documents\sophtware.wsm</_ProjectName>

<_Name></_Name>

<aModules>

<std::vector>

<aModule>

<_Name>2000</_Name>

<aTasks>

<std::vector>

<aTask>

<_Name>1100</_Name>

<aOptions>

<std::vector>

<aOption>

<_Name>nr</_Name>

<aParams>

<std::map second="auto_untitled" first="name" />

<std::map second="4" first="se_category_id" />

<std::map second="2" first="keywords_category_id" />

</aParams>

</aOption>

</std::vector>

<std::vector>

<aOption>

<_Name>notify</_Name>

<aParams>

<std::map second="email" first="action" />

<std::map second="michael@websitemanagementtools.com" first="to" />

<std::map second="michael@sophtware.com" first="from" />

<std::map second="Finished ranking '[[project]]' at [[datetime]]." first="subject" />

</aParams>

</aOption>

</std::vector>

</aOptions>

</aTask>

</std::vector>

<std::vector>

<aTask>

<_Name>1200</_Name>

<aOptions>

<std::vector>

<aOption>

<_Name>report</_Name>

<aParams>

<std::map second="email" first="action" />

<std::map second="html" first="format" />

<std::map second="michael@websitemanagementtools.com" first="to" />

<std::map second="michael@sophtware.com" first="from" />

<std::map second="[[title]] Report" first="subject" />

<std::map second="1" first="group_id" />

<std::map second="1" first="custom_id" />

</aParams>

</aOption>

</std::vector>

<std::vector>

<aOption>

<_Name>report</_Name>

<aParams>

<std::map second="email" first="action" />

<std::map second="csv" first="format" />

<std::map second="michael@websitemanagementtools.com" first="to" />

<std::map second="michael@sophtware.com" first="from" />

<std::map second="[[title]] Export" first="subject" />

<std::map second="1" first="group_id" />

<std::map second="7" first="custom_id" />

</aParams>

</aOption>

</std::vector>

<std::vector>

<aOption>

<_Name>notify</_Name>

<aParams>

<std::map second="email" first="action" />

<std::map second="michael@websitemanagementtools.com" first="to" />

<std::map second="michael@sophtware.com" first="from" />

<std::map second="Ranking reports for '[[project]]' mailed out!" first="subject" />

</aParams>

</aOption>

</std::vector>

</aOptions>

</aTask>

</std::vector>

</aTasks>

</aModule>

</std::vector>

</aModules>

</aBatch>

</std::vector>

</aBatches>

</aAutoOptions>

 


Page url: http://www.helpandmanual.com/help/index.html?wmh_sample_scheduling_file.htm