hiii
I have the same problem when use SSH from c# App in this code ......
/system script add name="ExpireHotspotUsers" source="
# By
aonallah1987@yahoo.com & fb.com/aonallah1
# Run this daily
:foreach i in=[/ip hotspot user find] do={
:global startbytess [/ip hotspot user get $i bytes-out]
:global allvalcomment [/ip hotspot user get $i comment]
:global typee [:typeof $allvalcomment]
:global lennn [:len $allvalcomment]
:if ( $lennn < 5 ) do={
:if (startbytess > 0 ) do={
:if ($allvalcomment = 1 || $allvalcomment < 1 ) do={
/ip hotspot user disable $i
/ip hotspot user set $i comment=(($allvalcomment))
} else {
/ip hotspot user set $i comment=(($allvalcomment-1))
}
}}
else {
:if ( $lennn >= 4) do={
:global valcomment [:pick ($allvalcomment) [:find ($allvalcomment) " " -1] 100 ]
:global realcomment [:pick ($allvalcomment) 0 [:find ($allvalcomment) " " -1]]
:if ($startbytess > 0 ) do={
:if ($realcomment = 1 || $realcomment < 1 ) do={
/ip hotspot user disable $i
/ip hotspot user set $i comment=(($realcomment). $valcomment)
} else {
/ip hotspot user set $i comment=(($realcomment-1). $valcomment)
}
}
}}}
"
--------------------------
hellp