-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubmit_queue_vmware.bat
More file actions
47 lines (40 loc) · 1.26 KB
/
submit_queue_vmware.bat
File metadata and controls
47 lines (40 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
@echo OFF
call submit_aff.bat
echo _______________________________________________________________________
echo Beginning of script execution...
date /T
time /T
echo _______________________________________________________________________
rem TEST mode
if "%TOM_JOB_EXEC%" == "TEST" (
echo Job executed in TEST mode
%ABM_BIN%\tsend -sT -r0 -m"Job completed (TEST mode)"
%ABM_BIN%\vtgestlog
goto FIN
)
py %ABM_BIN%\vmware.py %1 %2 %3 %4
set RETCODE=%ERRORLEVEL%
if %RETCODE% equ 0 goto TERMINE
goto ERREUR
:ERREUR
%ABM_BIN%\tsend -sE -r%RETCODE% -m"Job in error (%RETCODE%)"
%ABM_BIN%\vtgestlog
echo _______________________________________________________________________
echo End of script execution
date /T
time /T
echo Exit [%RETCODE%] so no acknowledgment
echo _______________________________________________________________________
if not "%TOM_LOG_ACTION%"==" " call Gestlog_wnt.bat
exit %RETCODE%
:TERMINE
%ABM_BIN%\tsend -sT -r%RETCODE% -m"Job completed (%RETCODE%)"
%ABM_BIN%\vtgestlog
echo _______________________________________________________________________
echo End of script execution
date /T
time /T
echo Exit [%RETCODE%] so acknowledgment
if not "%TOM_LOG_ACTION%"==" " call Gestlog_wnt.bat
exit %RETCODE%
:FIN