Community discussions

MikroTik App
 
chalan
newbie
Topic Author
Posts: 27
Joined: Wed Sep 14, 2005 1:29 pm

script with terminal OK with button or scheduler NO help

Sat Jan 11, 2014 3:42 pm

simple script test
/interface virtual-ethernet set name="name" 0 ;
when i run the script in terminal with "/system script run test" everything is OK but with button run script in winbox or with scheduler it wont write the name, please help

i have checked all policies in script

mk ver 5.26

thank you
 
User avatar
skot
Long time Member
Long time Member
Posts: 584
Joined: Wed Nov 30, 2011 3:05 am

Re: script with terminal OK with button or scheduler NO help

Tue Jan 14, 2014 6:53 pm

Use [find] instead of the number to select the interface, something like this:

ros code

/interface virtual-ethernet set [find name=vif1] name="name"
 
chalan
newbie
Topic Author
Posts: 27
Joined: Wed Sep 14, 2005 1:29 pm

Re: script with terminal OK with button or scheduler NO help

Fri Jan 31, 2014 4:47 pm

it works not with virutal ethernet interface but with bridge interfaces, thank you anyway