How to hide output of "once"

Hello all

I have the following set of commands inside a script:
:global counter
/interface monitor-traffic ether1 once do={:set $counter (rx-packets-per-second)}
:put $counter

However, when i run the script, instead of getting only the $counter variable i get the full echo of the once command.
How can i hide everything and get it cleaner?

Cheers

You can’t. It will always be printed to terminal.

http://forum.mikrotik.com/t/get-ethernet-status-rate/85927/1
Have a look at this.

That worked out perfectly.

Thank you very much!