Community discussions

MikroTik App
 
webix
newbie
Topic Author
Posts: 33
Joined: Fri May 04, 2018 3:34 pm

How to hide output of "once"

Thu Jun 14, 2018 1:22 pm

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
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7188
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: How to hide output of "once"

Thu Jun 14, 2018 1:41 pm

You can't. It will always be printed to terminal.
 
2frogs
Forum Veteran
Forum Veteran
Posts: 713
Joined: Fri Dec 03, 2010 1:38 am

Re: How to hide output of "once"

Fri Jun 15, 2018 12:53 am

viewtopic.php?t=94583
Have a look at this.
 
webix
newbie
Topic Author
Posts: 33
Joined: Fri May 04, 2018 3:34 pm

Re: How to hide output of "once"

Sun Jun 17, 2018 4:20 pm

That worked out perfectly.

Thank you very much!

Who is online

Users browsing this forum: No registered users and 4 guests