Advertisement
iaretechnician

scheduler.xml

May 28th, 2015
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.46 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
  2.  
  3. <!--
  4. This file is only provided as an example file and is not practical to use in real life.
  5. Make sure you take a copy of this file rename it and keep the orginale intact for orginale refrance.
  6. And Start using your new file Now!!
  7.  
  8. Web Doc : http://www.ibattle.org/install-and-configure/setting-up-the-scheduler/
  9.  
  10. BE Commands supported by the scheduler system are:
  11.  
  12. say -1 some text
  13. loadbans
  14. loadscripts
  15. loadevents
  16. writebans
  17. maxping 250
  18. #shutdown
  19. #restart
  20. #reassign
  21. #lock
  22. #unlock
  23. #mission filename (without the .pbo extension)
  24. systime
  25. uptime
  26. fortune
  27. exit
  28.  
  29.  
  30. *****************************************************************************************************
  31. Description:
  32. *****************************************************************************************************
  33.  
  34.  
  35. Schedules are created by adding a job with id.
  36. The first schedule should always start with id="0"
  37.  
  38. <Scheduler>
  39.     <job id="0">
  40.         <day></day>
  41.         <start></start>
  42.         <runtime></runtime>
  43.         <loop></loop>
  44.         <cmd></cmd>
  45.     </job>
  46.     <job id="1">
  47.         <day></day>
  48.         <start></start>
  49.         <runtime></runtime>
  50.         <loop></loop>
  51.         <cmd></cmd>
  52.     </job>
  53. </Scheduler>   
  54.  
  55. The job tag has 5 sub tags.
  56.  
  57. starting with:
  58.  
  59. <day>.../day>
  60.  
  61. The day of the week the schedule should run on.
  62. Days are seperated by ','
  63. <day>n</day> or <day>n,n+</day>
  64.  
  65. Monday starts with 1!
  66.  
  67. All days
  68. <day>1,2,3,4,5,6,7</day>
  69.  
  70. Monday and Friday only.
  71. <day>1,5</day>
  72.  
  73. Next:
  74. <start>......</start>
  75. This tag may have one of two input format.
  76.  
  77. Format 1:
  78. Contains 3 segments where each segment is a size of 2 in range of 00 - 99
  79. Hour Min  Sec
  80. [nn] [nn] [nn]
  81. nnnnnn
  82. Max value is 999999 and min value is 000000
  83.  
  84. <start>000090</start>
  85. This will make the schedule execute 90 seconds after bec has started up and logged in.
  86. Note that:
  87.  
  88. <start>000130</start>
  89. Will also make the schedule execute 90 seconds after bec has started up.
  90. as 90 sec is the same as 1 min and 30 sec
  91.  
  92.  
  93. Format 2:
  94. Contains 2 segments where each segment is a size of 2 in range of 00 - (23&59) and each segment is seperated by ':'
  95.  
  96. Hour   Min    Sec
  97. [nn] : [nn] : [nn]
  98.  
  99. <start>23:05:30</start>
  100. This will make the schedule execute precice at 23:05:30
  101.  
  102. To execute a schedule at midnight use:
  103. <start>00:00:00</start>
  104.  
  105. To execute a schedule at noon use:
  106. <start>12:00:00</start>
  107.  
  108.  
  109. Next:
  110. <runtime>....../runtime>
  111. This tag uses the same format as the <start> tag format 1 (hhmmss), it also only work when the loop is set to -1 or higher than 0. ie 10
  112. <runtime>hhmmss</runtime>
  113.  
  114.  
  115. Next:
  116. <loop>N</loop>
  117.  
  118. If -1 is used it means it will loop forever.
  119. If 0 is used the job will only be run once.
  120. If a number higher than 0 is used it will loop the set numbers.
  121. Each loop interval is set in the runtime tag.
  122.  
  123. Example.
  124. <runtime>001000</runtime>
  125. <loop>5</loop>
  126.  
  127. this means that the job will loop 6 times with a 10 minute delay between each job after the jobstart
  128. once "start" + number of loops
  129.  
  130. Next:
  131. <cmd>Command</cmd>
  132. Set the command that is to be executed.
  133.  
  134. you can use external commands. example
  135. <cmd>c:\path\myfile.bat</cmd>
  136.  
  137. or just use a internal command.
  138. <cmd>uptime</cmd>
  139.  
  140. SEE THE SCHEDULER_FAQ.txt for more info
  141.  
  142. -->
  143.  
  144.  
  145. <Scheduler>
  146.  
  147.     <!-- this job will start after 30 minutes and run once -->
  148.     <job id='0'>
  149.         <day>1,2,3,4,5,6,7</day>
  150.         <start>003000</start>
  151.         <runtime>000000</runtime>
  152.         <loop>0</loop>
  153.         <cmd>say -1 Server has just restarted. Its now 2:30pm. Next restart in 7 hours</cmd>
  154.     </job>
  155.  
  156.     <!-- this job will start after 10 miinutes and will run every 15 minutes . fortune.txt has all random  sayings -->
  157.     <job id='1'>
  158.         <day>1,2,3,4,5,6,7</day>
  159.         <start>000100</start>
  160.         <runtime>003200</runtime>
  161.         <loop>-1</loop>
  162.         <cmd>uptime</cmd>
  163.     </job>
  164.    
  165.     <job id='2'>
  166.         <day>1,2,3,4,5,6,7</day>
  167.         <start>070000</start>
  168.         <runtime>000000</runtime>
  169.         <loop>0</loop>
  170.         <cmd>say -1 30 minutes until restart</cmd>
  171.     </job>
  172.  
  173.    
  174.     <job id='3'>
  175.         <day>1,2,3,4,5,6,7</day>
  176.         <start>072000</start>
  177.         <runtime>000000</runtime>
  178.         <loop>0</loop>
  179.         <cmd>say -1 TEN MINUTES until restart</cmd>
  180.     </job>
  181.  
  182.     <job id='4'>
  183.         <day>1,2,3,4,5,6,7</day>
  184.         <start>072800</start>
  185.         <runtime>000000</runtime>
  186.         <loop>0</loop>
  187.         <cmd>say -1 TWO MINUTES until restart, GET YOUR SHIT TOGETHER</cmd>
  188.     </job>
  189.  
  190.     <job id='5'>
  191.         <day>1,2,3,4,5,6,7</day>
  192.         <start>073000</start>
  193.         <runtime>000000</runtime>
  194.         <loop>0</loop>
  195.         <cmd>c:\arma\_restart.bat</cmd>
  196.     </job>
  197.    
  198. </Scheduler>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement