anchor.diff:  @echo off
   SETLOCAL
  +SETLOCAL ENABLEDELAYEDEXPANSION
   
   call init.bat scheduler-log4j-server
   
  
positive.code:         set SCHED_PID=%_result%
  )
  
  set SCHED_URL_STR=
  set RM_URL_STR=
  :WaitLoop
          for /f "tokens=*" %%i in ('FINDSTR /C:"The resource manager with 4 local nodes created on" %SCHED_OUT%') do set RM_URL_STR=%%i
          IF NOT ["%RM_URL_STR%"]==[""] (
                  SET RM_URL=%RM_URL_STR:~50%
          )
  
          for /f "tokens=*" %%i in ('FINDSTR /C:"The scheduler created on" %SCHED_OUT%') do set SCHED_URL_STR=%%i
          IF ["%SCHED_URL_STR%"]==[""] (
                  echo Waiting for the scheduler...
                  call :delay 5 
          ) ELSE (
                  SET SCHED_URL=%SCHED_URL_STR:~24%
                  GOTO :EndWaitLoop
          )
  
  
negative.code:         goto :eof
  
  :delay
          ping -n %1 127.0.0.1 > NUL
          goto :eof
  
  :eof
  