Hello ,
I have a strange problem -
I have a script that run jsut fine from terminal
but when I put him in scheduler it does nothing
I can see the scheduler run count +1 but the script is running
what could be the reason for it?
Hello ,
I have a strange problem -
I have a script that run jsut fine from terminal
but when I put him in scheduler it does nothing
I can see the scheduler run count +1 but the script is running
what could be the reason for it?
Have you tried putting this into the scheduler field instead of just the script name?
/system script run myscript
Are you sure that Scheduler has the same or more policies enabled than the script?
now after I write in the scheduler
/system script run myscript
it is working
what is the different?
Did you have multiple scripts on this device? Is it possible that they had similar names?
No multiple scripts on this device ,
I have also try to change the name - stil the same …
strange
Silly of me to ask but your router does have the correct time? Have had a similar issue when I didn’t set SNTP to a router once and it too didn’t run scripts at the correct time.
I thought about it also - ![]()
the time is correct
If clock would affect this, then behavior would not differ between specifying script name or full script launch command.
Please provide precise export of:
Hi,
please check policy in scheduler and on script. The policies in scheduler must be same or greater than on script.
MV.
I too facing similar issues in hotspot user profile logout . I am firing some url on logout . some time script executes some times not .
very strange behaviour . In some version of Mikrotik it work ok .but this issue is there. There is no gurantee that script will execute on time .
Hope mikrotik see this issue in detail.
put whole script inside { }
I have created script MQTT and schedule MQTT and had same issue.
When I changed both on mqtt it started working.
I think that key words should not been used.
deleted post
Inside the scheduler you can put directly the script.
Why inside scheduler put a script that launch another script?
Maybe the documentation could be updated https://wiki.mikrotik.com/wiki/Manual:System/Scheduler because there, it reads: on-event (name) - name of the script to execute. It must be presented at /system script
Is old documentation, from v4 on 2008…