Community discussions

MikroTik App
 
atuxnull
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Tue Feb 07, 2017 10:02 pm

script update

Wed Jun 28, 2017 9:33 am

hi. i am running a mikrotik 750 in my home and i have a ddns service from dynu. i did follow the guide from this link https://www.dynu.com/DynamicDNS/IPUpdat ... ynamic-DNS and it worked at once. the only problem is that the mikrotik it does not update the script, unless i issue it on winbox '
run script
'. i tried to issue from ssh
/system scheduler add comment="Update Dynu DDNS" interval=5m name=ddns_sheduller \
on-event="/system script run Dynu\r\n" policy=read,write,test start-time=startup
but without any luck. i would appreaciate any help available please.
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: script update

Wed Jun 28, 2017 11:18 am

Policies of the scheduler should correspond to the policies of the script. Expecting the name is correct of course...
Use just a plain name of the script in the scheduler.
 
atuxnull
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Tue Feb 07, 2017 10:02 pm

Re: script update

Wed Jun 28, 2017 6:55 pm

I am afraid that i have the name correct, but it does not update, unless i run it manually.
Image
Any ideas please?
 
msatter
Forum Guru
Forum Guru
Posts: 2942
Joined: Tue Feb 18, 2014 12:56 am
Location: Netherlands / Nīderlande

Re: script update

Thu Jun 29, 2017 12:28 am

You will have to wait 5 minutes before it is executed the first time. Also look at the last part "start-time=startup" and can cause conflicts because of "startup" and I would not use "start-time=startup" here.

RouterOS is evolving all the time, something what was good last year can now be changed ant not more working in that way.
 
atuxnull
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Tue Feb 07, 2017 10:02 pm

Re: script update

Thu Jun 29, 2017 7:36 am

thanks a lot for the reply. i was waiting for more than 2 days before posting to the forum, not only 5 minutes.
regarding the start-time=startup what do i have to put there?
Is it something wrong with my config and it does not update automatically. it works only if i press the run script button