Possible Duplicate:
Bash: Terminate on Timeout/File Overflow while Executing Command
I have a shell script to backup an O/S image. I want to set the time limit and notify me. If the shell script runs for longer than two hours, it needs to send the e-mail out. What is the best way to implement this logic?