Running script on startup with interval

How do I run script on startup once and then with interval 24h.

When I check in my scheduler start time=startup and interval=1d 00:00:00 script don’t run on boot

first check the ouput of

/system script run nameofscrip.

if ouput is nothing scritp its ok.


then add scheduler
start date: May/30/2012
start time: startup
interval: 24:00:00

on event: /system script run nameofscrip


check the scheduler with

/system reboot

I set
/system scheduler
add disabled=no start-time=startup interval=1d name=fetch on-event="{delay 180;
global ftpserver;…}

When I reboot router script did’t start. but start after 24h

Why delay = interval in this situation.

set te scheduler..

start time: startuo
interval: 00:00:00

Mikrotik support promised me (send ticket to support) that in the next version will fix the problem but nothing has changed.

Interval is broken when I choose start time=startup

Is there any advice how to deal with this problem on the moment.

reg.
BD

Make a new scheduler that runs this scrip at startup:

/system scheduler {
    :local o [find name="Job to be run at startup and every 24h after that"]
    :if ([get $o disabled] = no) do={
        set $o disabled=yes
    }

    :local today
    :do {
        :delay 3
        :set today [/system clock get date]
    } while=([:pick $today 7 11] = "1970");

    set $o start-date=$today start-time=([/system clock get time] + 00:00:02) disabled=no interval=24:00:00
}

My solution:

I create two scheduler one with start time=startup and second with interval=1 day

Regards

BD