Community discussions

MikroTik App
 
bsdwet
just joined
Topic Author
Posts: 1
Joined: Fri Jan 05, 2024 11:14 am

Get access to script environment in Netwatch?

Wed Jan 10, 2024 7:12 pm

Is there any option to get access to script environment in netwatch?

When I do this in Netwatch:
/system script environment
:foreach item in=[find] do={
:local vvalue [get $item value]
:log warning $vvalue
}

I got :
script error: not enough permissions (9)

If I have global variable in environment
:global name "test"

and I want to get value in Netwatch
:global name
:log warning $name
I got nothing

please help.
thanks.

Who is online

Users browsing this forum: JohnConnett, Mosmos, vagrik and 21 guests