xpost from "Beginner Basic"

Hello,
I’m just starting out with mickroTik’s and am having an problem figuring this script out. I want something that will cycle through the 2.4GHz frequencies at a rate of “X”. So far I’ve been able to find the command to do it in the terminal:

/interface wireless set wlan1 ssid=test frequency=2412 band=2.4ghz-b/g mode=ap-bridge disabled=no

But how do I get it to run to have it cycle through each channel over and over? Thanks for the help.

David