I am working on a script to show all active interfaces in PPTP. The script is working fine when run in mikrotik console. I want to execute this script through SSH, it gives error when executed through SSH.
Code: Select all
:global iname;:foreach i in=[/interface find type=pptp-in] do={:set iname [interface get $i name] ;:put $iname}
"expected end of command (line 1 column 86)"
When i run this same script in MT console, it works fine.
How can i resolve this error.