Click to See Complete Forum and Search --> : Timer in a shell script


KenHorse
10-26-2002, 11:44 AM
I'm trying to write a shell script that acts as a watchdog timer.

Basically it needs to look for a file being created by another process and if it finds it, it resets and starts the timing cycle over. If it times out before seeing that file, it will run another script.

I know I can assign a variable X=`date +%S` as a starting point and I know how to check for the existence or non-existence of a file, but I just can't seem to put it all together so it works.

I'm thinking an until loop, running in the background.

Help?