Shell script..invoking command and exiting at fixed intervals

Hi,

I need to write a shell script.
Based on command line param to script say demode=yes
Need to run an ant command for an hour(configurable)
Then exit
Again run the ant command

all this needs to be in a loop.

Thanks in advance
Raj

Have a look at the bash scripting guide's chapter about controll structures and parameters. Use sleep or cron to run about once an hour.