Code: Select all
{
:global networkName
:global download
:global upload
:local setQueueTreeMaxLimit do={
:local currentMaxLimit [/queue/tree/get [find name=$queueTreeName] max-limit]
:put $currentMaxLimit
}
$setQueueTreeMaxLimit queueTreeName=($networkName . "-download") maxLimit=$download
$setQueueTreeMaxLimit queueTreeName=($networkName . "-upload") maxLimit=$upload
}
Code: Select all
> :global networkName Guest; :global download 5000000; :global upload 5000000; /system/script/run set-queue-max-limit
Guest-download
5000000
Guest-upload
5000000
Code: Select all
$ ssh user@device ":global networkName Guest; :global download 10000000; :global upload 10000000; /system/script/run set-queue-max-limit"
Guest-download
no such item
.:local currentMaxLimit [/queue/tree/get [find name=$queueTreeName] max-limit]
But what I cannot understand is that why this line borks over ssh, but in in termal.... Any thoughts as to why?