Disable hotspot user on specifik date - help

Need help for a script!

Lets say a hotspot user has the following comment “dec/12/2012”

I should be possible to do a script that runs every day, checking user comments and disables them if there is a match with current date?

Any advice, surguestion or thoughts on this subject will be wellcome :smiley:

/BK

try this


foreach i in=[ip hotspot user find ] do={
local comm [ip hotspot user get value-name=comment $i ]
local commdate [pick $comm 4 6]
local date [pick [sys clock get date ] 4 6]
if ($commdate = $date ) do={ip hotspot user disable $i
}}