#!/bin/bash RIGCTL=$(which rigctl) PARAMETERS="-m 2" DELAY="60" BANDS="14074000 21074000 28074000" # wait for full minute sleep $(((60 - $(date +%s) % 60)-1)) # start switching while true do for band in $BANDS do $RIGCTL $PARAMETERS F $band sleep $DELAY done done