23 Feb
2006
23 Feb
'06
18:11
Jerry Feldman wrote:
#!/bin/bash while [ 1 ] do # do whatever task you want to do sleep 15 # sleep for 15 seconds done
I know you know this Jerry, but I still have to point this out: this won't run every 15 seconds, it will run at 15 second intervals. To get something run every 15 seconds, you have to do something like a C program with a timer giving a SIGALRM every 15 seconds, and set whatever it is you want to do as a signal handler. And if the 15 second thing is a strict requirement, you also have to run it as a realtime process