perl - shell script set time limit and notify -


possible duplicate:
bash: terminate on timeout/file overflow while executing command

i have shell script backup o/s image. want set time limit , notify me. if shell script runs longer 2 hours, needs send e-mail out. best way implement logic?

you can use ps command check how time process running.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -