RouterOS 6.48.1
#Script1(Set all needed variables):
:global OnClock 8:30:00
:global OffClock 16:30:00
#Script2 in Netwatch:
:if ([/system resource get uptime]>900) do={:log info "No ping"; /system script run Script3;}
#Script3(called from Netwatch):
:global OnClock
:global OffClock
:log info $OnClock
:log info $OffClock
Script1 and Script3 has Dont require Permissions option. Script3 runs manually without any problem. If netwatch event occur - global variables in Script3 are logged as blank. Without "Dont require Permissions option" in Script3 I get error “could not run script Script3: not enough permissions”
I don`t want to put “Global” variable value in each script where it is needed.
This is BUG or “feature”?
How to resolve this issue?