How to schedule a script to run every 1st day of the month at 12:00:00?
Thanks in advance.
Tony
How to schedule a script to run every 1st day of the month at 12:00:00?
Thanks in advance.
Tony
You can’t do that exactly… you could run it every 30 days though. As far as I know there is no “month” interval.
http://wiki.mikrotik.com/wiki/Manual:System/Scheduler
I believe it would look like:
add name=MyScript on-event=MyScript interval=30d start-time=12:00:00 start-date=Jan/1/1970
The other option would be to run the script daily, and have it check to see if the day is 01.. and run if it is.
Found this on the forum… as an example
:local date
:local day
:set date [/system clock get date]
:set day [:pick $date 4 6]
:if ([$day] = “03” ) do={ :log info “This runs” } else={ :log info “Does not run” }