summaryrefslogtreecommitdiff
path: root/sim/sim_files/dp0/SYS/MECH/clusterjob_9f439c6f-d852-4439-a0be-95175f8d9945.bat
diff options
context:
space:
mode:
Diffstat (limited to 'sim/sim_files/dp0/SYS/MECH/clusterjob_9f439c6f-d852-4439-a0be-95175f8d9945.bat')
-rw-r--r--sim/sim_files/dp0/SYS/MECH/clusterjob_9f439c6f-d852-4439-a0be-95175f8d9945.bat39
1 files changed, 39 insertions, 0 deletions
diff --git a/sim/sim_files/dp0/SYS/MECH/clusterjob_9f439c6f-d852-4439-a0be-95175f8d9945.bat b/sim/sim_files/dp0/SYS/MECH/clusterjob_9f439c6f-d852-4439-a0be-95175f8d9945.bat
new file mode 100644
index 0000000..736a7a2
--- /dev/null
+++ b/sim/sim_files/dp0/SYS/MECH/clusterjob_9f439c6f-d852-4439-a0be-95175f8d9945.bat
@@ -0,0 +1,39 @@
+@ECHO OFF
+SETLOCAL
+CHCP 65001
+ECHO Job started on %COMPUTERNAME%
+SET /A errno=0
+ECHO ClusterSharedDirectory=C:\Users\Abel Tim\Documents\pws\sim\_ProjectScratch\Scr1ED4
+IF NOT EXIST "C:\Users\Abel Tim\Documents\pws\sim\_ProjectScratch\Scr1ED4\." goto NOSTAGINGDIR
+ECHO AWP_ROOT242=%AWP_ROOT242%
+IF "%AWP_ROOT242%" == "" GOTO NOAWPROOTENV
+IF NOT EXIST "%AWP_ROOT242%\." goto NOAWPROOTDIR
+ECHO Command=%AWP_ROOT242%/commonfiles/CPython/3_10/winx64/Release/python/python.exe
+IF NOT EXIST "%AWP_ROOT242%/commonfiles/CPython/3_10/winx64/Release/python/python.exe" goto NOCOMMAND
+ECHO running the commmand
+ECHO command: "%AWP_ROOT242%/commonfiles/CPython/3_10/winx64/Release/python/python.exe" -B -E "%AWP_ROOT242%/RSM/Config/scripts/ClusterJobs.py" "C:\Users\Abel Tim\Documents\pws\sim\_ProjectScratch\Scr1ED4\control_9f439c6f-d852-4439-a0be-95175f8d9945.rsm"
+"%AWP_ROOT242%/commonfiles/CPython/3_10/winx64/Release/python/python.exe" -B -E "%AWP_ROOT242%/RSM/Config/scripts/ClusterJobs.py" "C:\Users\Abel Tim\Documents\pws\sim\_ProjectScratch\Scr1ED4\control_9f439c6f-d852-4439-a0be-95175f8d9945.rsm"
+IF %ERRORLEVEL% NEQ 0 SET /A errno=%ERRORLEVEL%
+GOTO END
+:NOAWPROOTENV
+ECHO The AWP_ROOT242 environment variable was NOT detected.
+ECHO 1000 > "C:\Users\Abel Tim\Documents\pws\sim\_ProjectScratch\Scr1ED4\exitcode_9f439c6f-d852-4439-a0be-95175f8d9945.rsmout"
+SET /A errno=1000
+GOTO END
+:NOCOMMAND
+ECHO Command was NOT detected on execution host.
+ECHO 1007 > "C:\Users\Abel Tim\Documents\pws\sim\_ProjectScratch\Scr1ED4\exitcode_9f439c6f-d852-4439-a0be-95175f8d9945.rsmout"
+SET /A errno=1007
+GOTO END
+:NOSTAGINGDIR
+ECHO Shared cluster directory does not exist on execution node, make sure it is shared and can be accessed from all nodes.
+ECHO 1008 > "C:\Users\Abel Tim\Documents\pws\sim\_ProjectScratch\Scr1ED4\exitcode_9f439c6f-d852-4439-a0be-95175f8d9945.rsmout"
+SET /A errno=1008
+GOTO END
+:NOAWPROOTDIR
+ECHO AWP_ROOT242 directory does not exist on execution host.
+ECHO 1009 > "C:\Users\Abel Tim\Documents\pws\sim\_ProjectScratch\Scr1ED4\exitcode_9f439c6f-d852-4439-a0be-95175f8d9945.rsmout"
+SET /A errno=1009
+GOTO END
+:END
+EXIT /B %errno%