I have a 2 scripts which have almost same line. Both run fine if I execute them manually. But when I run them from script or scheduler, it won’t work. This is really strange and frustrating.
The script is as below:
script-a
/interface ethernet switch ingress-port-policer disable number=0
script-b
/interface ethernet switch ingress-port-policer disable number=1
Problem:
script-a runs fine under scheduler but script-b does not work.
- if I use commandline to “/system script run script-b” it will work
- if I click on “run script” or let the scheduler run the script it will not work for script-b (script-a works)
- i have tried removing and adding “enter” at the end of the line for both scripts but still the same. script-a works perfectly but script-b does not work under scheduler.
Anyone have any idea how to solve this? Mikrotik’s scripts is really very broken.