A
A
Anton Zubkov2018-06-13 18:27:00
Mikrotik
Anton Zubkov, 2018-06-13 18:27:00

How to interrupt script execution on Mikrotik?

Wrote a script for automatic configuration of Mikrotik. A valid date is required to generate certificates.
To check synchronization with time servers, I use a loop:

:do {:delay 1} while=([/system ntp client get last-update-before]=[]);

Tell me how to make it so that if synchronization has not passed within 60 seconds, interrupt the script?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
Ziptar, 2018-06-15
@Ziptar

https://wiki.mikrotik.com/wiki/Manual:Scripting#Gl...

error :error Generate console error and stop executing the script

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question