Hi.
I try to delete pppoe connections do not having a simple queue.
I use this code:
:foreach Id in=[/ppp active find] do={
:local Iface [/ppp active get $Id name]
:put $Iface
:if ([/queue simple find name=("<pppoe-".$Iface.">")]="") do={
/ppp active remove $Iface} }
The problem is this script interrupts every time with error "no such item"
I tried to use on-error in many positions:
:foreach Id in=[/ppp active find] do={
:local Iface [/ppp active get $Id name]
:put $Iface
:if ([/queue simple find name=("<pppoe-".$Iface.">")]="") do={
/ppp active remove $Iface} } on-error{}
but each time the error is "expected end of command"
How can I do?
Thanks
Rodolfo.