mirror of
https://github.com/pothi/mikrotik-scripts.git
synced 2025-06-22 22:23:31 +02:00
Add test scripts and backup-buttons script
This commit is contained in:
parent
bf07a55ca5
commit
a1a0489377
6 changed files with 79 additions and 0 deletions
12
test-snippets/test-log
Normal file
12
test-snippets/test-log
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Email the generic-log when it reaches the threshold!
|
||||
|
||||
:global adminEmail
|
||||
:local emailStatus
|
||||
:local logFile "genericLog.1.txt"
|
||||
:local fileContent "temp"
|
||||
|
||||
:do {
|
||||
if ( [/file get "flash/$logFile" ] != "no such item" ) do={ :log info "Log file found!" }
|
||||
} on-error={ :log warning "Log file isn't big enough!" }
|
||||
|
||||
:put $fileContent
|
Loading…
Add table
Add a link
Reference in a new issue