Good Day
I am trying to run the following script on a schedule, if I manually click run script it does not run as well as from the schedule but if I run the script in terminal or execute it from terminal it works.
Script
/ip firewall filter move 2 destination=11
Semicolon at the end of the line has not been needed for many years, and will not help here.
You should not use ID number for anything in the script since its temporary and is not the same as the number you see in winbox.
Example my FTP rule shows its number 4 in a test router. But when I do run
:put [ip firewall filter find where comment~“ftp”]
it shows up as *12 not 4
So to move it
ip firewall filter move [find where comment~"ftp"] destination=5
Can you give the reason of moving filter rules within script. Its dangerous since you do not now the destination position and you can lock your self out.