I made a script with an infinite loop. It doesn’t matter what it does, what matters is that the cycle is endless. It’s easy to stop it in the terminal (Cntrl+C), but I decided to put it in the scheduler so that it starts when Mikrotik is rebooted. And set the interval to 1 minute. As a result, a bunch of versions of the script were launched. If I understand correctly, they hang in “Jobs”. Disabling the script in the scheduler does not help. Apparently those hanging in JOBS are executed. If I remove it by hand in JOBS one by one, it will be removed. If I try like this:
/system script job remove script_name
then he swears:
no such item
From here I wanted to understand:
- How to extinguish all versions of a running script?
- How can I write in the scheduler so that the script runs only once at startup?