-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbasejobs.cmd.sample
More file actions
30 lines (24 loc) · 2.64 KB
/
basejobs.cmd.sample
File metadata and controls
30 lines (24 loc) · 2.64 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
@rem (Base function) This CMD file executes a number of steps.
@rem CheckStatus checks the Status table for timeouts and errors. It sets the mail switch and updates the Console table.
@rem -cp C:\JavaSrc;C:\JavaSrc\postgresql-42.1.3.jar Jvakt.CheckStatus -config D:\Jvakt-console\config >> CheckStatus.log 2>> CheckStatusE.log
java -cp C:\Jvakt\Jvakt.jar Jvakt.CheckStatus -config D:\Jvakt-console\config >> CheckStatus.log 2>> CheckStatusE.log
@rem console2html creates a HTML file from the Console table.
@rem -cp C:\JavaSrc;C:\JavaSrc\postgresql-42.1.3.jar Jvakt.console2html -config D:\Jvakt-console\config > console.work 2> consoleE.log
java -cp C:\Jvakt\Jvakt.jar Jvakt.console2html -config D:\Jvakt-console\config > console.work 2> consoleE.log
move /Y console.work console.html
copy /Y console.html D:\Jvakt-console
@rem SendMail sends mail decided by the CheckStatus step. The Status tabled is read and updated regarding mail issues.
@rem The prio of the must be below 30 and the "toEmail"" variabe in the jVakt.properties file is used.
@rem -cp C:\JavaSrc;C:\JavaSrc\postgresql-42.1.3.jar;C:\JavaSrc\javax.mail-1.5.6.jar Jvakt.SendMail -config D:\Jvakt-console\config >> SendMail.log 2> SendMailE.log
java -cp C:\Jvakt\Jvakt.jar Jvakt.SendMail -config D:\Jvakt-console\config >> SendMail.log 2> SendMailE.log
@rem SendMail30 sends mail decided by the CheckStatus step. The Status table is read and updated regarding mail issues.
@rem The prio must be 30 and above. It is used for lesser important issues to be able to mail interested parties.
@rem The file SendMail30-01.csv is read.
@rem -cp C:\JavaSrc;C:\JavaSrc\postgresql-42.1.3.jar;C:\JavaSrc\javax.mail-1.5.6.jar Jvakt.SendMail30 -config D:\Jvakt-console\config >> SendMail30.log 2> SendMail30E.log
java -cp C:\Jvakt\Jvakt.jar Jvakt.SendMail30 -config D:\Jvakt-console\config >> SendMail30.log 2> SendMail30E.log
@rem GetMail2Jvakt gets mail .
@rem -cp C:\Jvakt;C:\Jvakt\jakarta.mail-2.0.0.jar;C:\Jvakt\jakarta.activation-api-2.0.0.jar Jvakt.GetMail2Jvakt -config C:\Jvakt\Mail\ToJvakt >> C:\Jvakt\Logs\GetMail2Jvakt.log 2> C:\Jvakt\Logs\GetMail2JvaktE.log
java -cp C:\Jvakt\Jvakt.jar Jvakt.GetMail2Jvakt -config C:\Jvakt\Mail\ToJvakt >> C:\Jvakt\Logs\GetMail2Jvakt.log 2> C:\Jvakt\Logs\GetMail2JvaktE.log
@rem SendSMS sends SMS text messages decided by the CheckStatus step. The Status table is read and updated regarding SMS issues.
@rem The prio of the must be below 30 and the "toSMS"" variabe in the jVakt.properties file is used to know which phones send SMS to.
java -cp C:\Jvakt\Jvakt.jar Jvakt.SendSMS -config D:\Jvakt-console\config >> C:\Jvakt\Logs\SendSMS.log 2> C:\Jvakt\Logs\SendSMSE.log