Please, when you open a topic,
give it a relevant title,
otherwise if all the topics on the scheduler were called "Scheduler" you know what a mess.
Schedule something each day, and on sceduler on
on-event:
v6 and v7 getday code
# create a function getday that return the current day set on RouterOS, as number
:global getday do={
/system clock ; # go to system clock subsection
:local vdate [get date] ; # put the current date into the variable vdate
:local vdoff [:toarray "0,4,5,7,8,10"] ; # create one array vdoff with the year, month, and day position on the vdate string
:if ($vdate ~ ".../../....") do={ ; # if the date is on old format mmm/dd/yyy
:set vdoff [:toarray "7,11,1,3,4,6"] ; # set vdoff with the correct values for old format
}
:local dd [:pick $vdate ($vdoff->4) ($vdoff->5)] ; # pick the day from vdate, the starting and ending points are read from vdoff position 4 and 5
:return [:tonum $dd] ; # convert the string 01..31 to a number, and return that value
}
:if ([$getday] = 11) do={
# call or put the script here
}