do...while loop

while [ $newMin -ne $curMin -a $curHour -ne $curHour ]; do

this statement is not working for me....

does anyone see a problem with the statement

Try this:
while [ $newMin -ne $curMin -o $newHour -ne $curHour ]; do