bustednuts

BEC Scheduler error Line 9

3 posts in this topic

I have my BEC finally working but it pops up a error , Scheduler file contains a error. not a valid command in the cmd tag. Location id=9. I looked at it and I dont see a error . Thats why i am here . Can you land me a hand? Scheduler File 

Spoiler

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

<Scheduler>

    <!-- this job will start after 10 minutes and run forever with a 1 hour and 30 minutes interval between the jobs -->

    <job id="0">
        <day>1,2,3,4,5,6,7</day>
        <start>000100</start>
        <runtime>000100</runtime>
        <loop>1</loop>
        <cmd>loadbans</cmd>
    </job>
        <job id="1">
        <day>1,2,3,4,5,6,7</day>
        <start>001000</start>
        <runtime>001000</runtime>
        <loop>100</loop>
        <cmd>say -1 Server Restarts every 4 Hours!</cmd>
    </job>
        <job id="2">
        <day>1,2,3,4,5,6,7</day>
        <start>001100</start>
        <runtime>001100</runtime>
        <loop>100</loop>
        <cmd>uptime</cmd>
    </job>
        <job id="3">
        <day>1,2,3,4,5,6,7</day>
        <start>001200</start>
        <runtime>001200</runtime>
        <loop>100</loop>
        <cmd>say -1 Be sure to ask an admin for help on our Teamspeak [TS3 HERE]</cmd>
    </job>
        <job id="4">
        <day>1,2,3,4,5,6,7</day>
        <start>001300</start>
        <runtime>001300</runtime>
        <loop>100</loop>
        <cmd>say -1 New to the server? Ask Admins for help Admin1, Admin2, Admin3</cmd>
    </job>
        <job id="5">
        <day>1,2,3,4,5,6,7</day>
        <start>033000</start>
        <runtime>100000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server will Restart in 30 minutes!</cmd>
    </job>
        <job id="6">
        <day>1,2,3,4,5,6,7</day>
        <start>034000</start>
        <runtime>100000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server will Restart in 20 minutes!</cmd>
    </job>
        <job id="7">
        <day>1,2,3,4,5,6,7</day>
        <start>035000</start>
        <runtime>100000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server will Restart in 10 minutes!</cmd>
    </job>
        <job id="8">
        <day>1,2,3,4,5,6,7</day>
        <start>035500</start>
        <runtime>100000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server will Restart in 5 minutes.It Would Be a Good Idea to Leave Now So Your Items Are Saved Correctly</cmd>
    </job>
        <job id="9">
    <start>040000</start>
    <runtime>100000</runtime>
    <day>1,2,3,4,5,6,7</day>
    <loop>1</loop>     
    <cmd>C:\ExileEsseker\Start_Server.bat</cmd> 
    <cmdtype>1</cmdtype> 
        </job>
</Scheduler>

Thanks for looking!!!

Share this post


Link to post
Share on other sites

Posted (edited)

Not sure how to go about running a batch from BEC. But using a batch to monitor/reboot the server and BEC while using #shutdown in the scheduler is very reliable.

Example for BEC monitor:

Spoiler

@echo off
color 0a
title BattlEye Extended Controls Monitor
:Serverstart
echo Launching BattlEye Extended Controls
J: 
cd "J:\Arma\BEC"
echo BattlEye Extended Controls Monitor... Active !
start "BEC" /min /wait J:\Arma\BEC\Bec.exe -f Config.cfg --dsc
ping 127.0.0.1 -n 15 >NUL
echo BattlEye Extended Controls Has Shutdown! ... Restarting!
ping 127.0.0.1 -n 5 >NUL
cls
goto Serverstart

becmonitor.bat

Example for server monitor:

Spoiler

@echo off
color 0a
title Exile Monitor
:Serverstart
echo Launching Server
J: 
cd "J:\Arma\Chernarus"
echo Exile Server Monitor... Active !
start "Arma3" /min /wait arma3server.exe -mod=J:\Arma\mods\@Exile;J:\Arma\mods\@a2op;Kart;Mark;Heli; -serverMod=@ExileServer;@infiSTAR_Exile; -config=J:\Arma\Chernarus\@ExileServer\config.cfg -port=2302 -profiles=SC -cfg=J:\Arma\Chernarus\@ExileServer\basic.cfg -name=SC -bepath=J:\Arma\Chernarus\battleye -autoinit
ping 127.0.0.1 -n 10 >NUL
echo Exile Server Shutdown ... Restarting!
ping 127.0.0.1 -n 5 >NUL
cls
goto Serverstart

servermonitor.bat

3hr restart with  pre locks, post locks, unlocks, shutdowns, and warnings scheduler example:

Spoiler

<?xml version="1.0"?>
<Scheduler>

    <job id='0'>
        <day>1,2,3,4,5,6,7</day>
        <start>02:45:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restart in 15 Minutes</cmd>
    </job>
    <job id='1'>
        <day>1,2,3,4,5,6,7</day>
        <start>02:50:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restart in 10 Minutes</cmd>
    </job>
	<job id='2'>
        <day>1,2,3,4,5,6,7</day>
        <start>02:55:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restart in 5 Minutes</cmd>
    </job>
    <job id='3'>
        <day>1,2,3,4,5,6,7</day>
        <start>02:55:01</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#lock</cmd>
    </job>
	<job id='4'>
        <day>1,2,3,4,5,6,7</day>
        <start>03:00:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#shutdown</cmd>
    </job>
    <job id='5'>
        <day>1,2,3,4,5,6,7</day>
        <start>03:01:30</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#lock</cmd>
    </job>
    <job id='6'>
        <day>1,2,3,4,5,6,7</day>
        <start>03:06:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#unlock</cmd>
    </job>	

<job id='7'>
        <day>1,2,3,4,5,6,7</day>
        <start>05:45:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restart in 15 Minutes</cmd>
    </job>
    <job id='8'>
        <day>1,2,3,4,5,6,7</day>
        <start>05:50:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restart in 10 Minutes</cmd>
    </job>
	<job id='9'>
        <day>1,2,3,4,5,6,7</day>
        <start>05:55:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restart in 5 Minutes</cmd>
    </job>
	<job id='10'>
        <day>1,2,3,4,5,6,7</day>
        <start>05:55:01</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#lock</cmd>
    </job>
	<job id='11'>
        <day>1,2,3,4,5,6,7</day>
        <start>06:00:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#shutdown</cmd>
    </job>
	<job id='12'>
        <day>1,2,3,4,5,6,7</day>
        <start>06:01:30</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#lock</cmd>
    </job>
	<job id='13'>
        <day>1,2,3,4,5,6,7</day>
        <start>06:06:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#unlock</cmd>
    </job>

<job id='14'>
        <day>1,2,3,4,5,6,7</day>
        <start>08:45:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restart in 15 Minutes</cmd>
    </job>
    <job id='15'>
        <day>1,2,3,4,5,6,7</day>
        <start>08:50:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restart in 10 Minutes</cmd>
    </job>
	<job id='16'>
        <day>1,2,3,4,5,6,7</day>
        <start>08:55:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restart in 5 Minutes</cmd>
    </job>
	<job id='17'>
        <day>1,2,3,4,5,6,7</day>
        <start>08:55:01</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#lock</cmd>
    </job>
	<job id='18'>
        <day>1,2,3,4,5,6,7</day>
        <start>09:00:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#shutdown</cmd>
    </job>
	<job id='19'>
        <day>1,2,3,4,5,6,7</day>
        <start>09:01:30</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#lock</cmd>
    </job>
	<job id='20'>
        <day>1,2,3,4,5,6,7</day>
        <start>09:06:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#unlock</cmd>
    </job>

<job id='21'>
        <day>1,2,3,4,5,6,7</day>
        <start>11:45:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restart in 15 Minutes</cmd>
    </job>
    <job id='22'>
        <day>1,2,3,4,5,6,7</day>
        <start>11:50:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restart in 10 Minutes</cmd>
    </job>
	<job id='23'>
        <day>1,2,3,4,5,6,7</day>
        <start>11:55:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restart in 5 Minutes</cmd>
    </job>
    <job id='24'>
        <day>1,2,3,4,5,6,7</day>
        <start>11:55:01</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#lock</cmd>
    </job>
	<job id='25'>
        <day>1,2,3,4,5,6,7</day>
        <start>12:00:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#shutdown</cmd>
    </job>
    <job id='26'>
        <day>1,2,3,4,5,6,7</day>
        <start>12:01:30</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#lock</cmd>
    </job>
    <job id='27'>
        <day>1,2,3,4,5,6,7</day>
        <start>12:06:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#unlock</cmd>
    </job>

<job id='28'>
        <day>1,2,3,4,5,6,7</day>
        <start>14:45:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restart in 15 Minutes</cmd>
    </job>
    <job id='29'>
        <day>1,2,3,4,5,6,7</day>
        <start>14:50:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restart in 10 Minutes</cmd>
    </job>
	<job id='30'>
        <day>1,2,3,4,5,6,7</day>
        <start>14:55:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restart in 5 Minutes</cmd>
    </job>
    <job id='31'>
        <day>1,2,3,4,5,6,7</day>
        <start>14:55:01</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#lock</cmd>
    </job>
	<job id='32'>
        <day>1,2,3,4,5,6,7</day>
        <start>15:00:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#shutdown</cmd>
    </job>
    <job id='33'>
        <day>1,2,3,4,5,6,7</day>
        <start>15:01:30</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#lock</cmd>
    </job>
	<job id='34'>
        <day>1,2,3,4,5,6,7</day>
        <start>15:06:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#unlock</cmd>
    </job>

<job id='35'>
        <day>1,2,3,4,5,6,7</day>
        <start>17:45:00</start>
        <runtime>000000</runtime>
        <cmd>say -1 Restart in 15 Minutes</cmd>
        <loop>0</loop>
    </job>
    <job id='36'>
        <day>1,2,3,4,5,6,7</day>
        <start>17:50:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restart in 10 Minutes</cmd>
    </job>
	<job id='37'>
        <day>1,2,3,4,5,6,7</day>
        <start>17:55:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restart in 5 Minutes</cmd>
    </job>
	<job id='38'>
        <day>1,2,3,4,5,6,7</day>
        <start>17:55:01</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#lock</cmd>
    </job>
	<job id='39'>
        <day>1,2,3,4,5,6,7</day>
        <start>18:00:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#shutdown</cmd>
    </job>
	<job id='40'>
        <day>1,2,3,4,5,6,7</day>
        <start>18:01:30</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#lock</cmd>
    </job>
	<job id='41'>
        <day>1,2,3,4,5,6,7</day>
        <start>18:06:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#unlock</cmd>
    </job>

<job id='42'>
        <day>1,2,3,4,5,6,7</day>
        <start>20:45:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restart in 15 Minutes</cmd>
    </job>
    <job id='43'>
        <day>1,2,3,4,5,6,7</day>
        <start>20:50:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restart in 10 Minutes</cmd>
    </job>
	<job id='44'>
        <day>1,2,3,4,5,6,7</day>
        <start>20:55:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restart in 5 Minutes</cmd>
    </job>
	<job id='45'>
        <day>1,2,3,4,5,6,7</day>
        <start>20:55:01</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#lock</cmd>
    </job>
	<job id='46'>
        <day>1,2,3,4,5,6,7</day>
        <start>21:00:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#shutdown</cmd>
    </job>
	<job id='47'>
        <day>1,2,3,4,5,6,7</day>
        <start>21:01:30</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#lock</cmd>
    </job>
	<job id='48'>
        <day>1,2,3,4,5,6,7</day>
        <start>21:06:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#unlock</cmd>
    </job>

<job id='49'>
        <day>1,2,3,4,5,6,7</day>
        <start>23:45:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restart in 15 Minutes</cmd>
    </job>
    <job id='50'>
        <day>1,2,3,4,5,6,7</day>
        <start>23:50:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restart in 10 Minutes</cmd>
    </job>
	<job id='51'>
        <day>1,2,3,4,5,6,7</day>
        <start>23:55:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restart in 5 Minutes</cmd>
    </job>
    <job id='52'>
        <day>1,2,3,4,5,6,7</day>
        <start>23:55:01</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#lock</cmd>
    </job>
	<job id='53'>
        <day>1,2,3,4,5,6,7</day>
        <start>00:00:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#shutdown</cmd>
    </job>
    <job id='54'>
        <day>1,2,3,4,5,6,7</day>
        <start>00:01:30</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#lock</cmd>
    </job>
    <job id='55'>
        <day>1,2,3,4,5,6,7</day>
        <start>00:06:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#unlock</cmd>
    </job>
	
</Scheduler>

 

 

Edited by oSoDirty

Share this post


Link to post
Share on other sites

This is what it says on ibattle.org

Quote

For external bat/cmd file(s) the full path is needed to be set unless the file are in the Bec directory.
<cmd>c:\tools\schedules\check_updates.cmd</cmd>
Note: when using external files. the current workdir is where Bec is located.

Going on that i would say add .cmd after your file name if  your trying to run a batch file

Quote

 <job id="0">
        <day>1,2,3,4,5,6,7</day>
        <start>000100</start>
        <runtime>000100</runtime>
        <loop>1</loop>
        <cmd>loadbans.cmd</cmd>
    </job>

I'm not sure why you want to run load bans every 60 seconds though. In your config.cfg file you could put

Quote

  AutoLoadBans = true
  Auto run loadbans when ban file(s) changes if set to 1.
  1 or True will turn it on.
  0 or False will turn it off. 
  If this parameter is not defined it will use False as default.

have a look at http://ibattle.org/install-and-configure/configure/

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.