Hi,
I want to know, is there any tool on which we can check whether the script that we have made is correct or not.
Hi,
I want to know, is there any tool on which we can check whether the script that we have made is correct or not.
As far as commands and format goes, I use the CLI script source editor. If command is bad, it will be in red. If format is not correct, the script will be in white text after the error. If no error, everything is in magenta, cyan, green, blue…colorful! ![]()
As far as program operation/flow goes, I torture them until they scream “I give up”, and do what I want.
Hi,
Basically i am writing a script (my first one). I have accomplished half of the task
:foreach i in=[/tool user-manager user find subscriber=mikrotik] \
do={:put ([/tool user-manager user get $i credit-left])}
These lines print the credit-left parameters of all the users of subscriber named MIKROTIK.
I want to remove all the users whose credit-left is not equalt to “4w3d00:00:00”. I know i have to use the “if” statement but i dont know how can i use it.
If anyone can help me out i would really appreciate their efforts.
HI,
I have accomplished my task and made a small script.
:foreach i in=[/tool user-manager user find subscriber=mudasir] \
\... do={:if ([/tool user-manager user get $i credit-left] != "4w3d00:00:00") do={/tool user-manager user disable $i }}