there are many ways to do it
crond is one way.
I have one running that is probably not the right way to do things but it works...
say the file is called myprog
I run it on boot from /etc/rc.d/rc.local
myprog &
heres the file contents
-----------------------------------------------------
#!/bin/sh
#
#
if blah then
blah blah
blah blah blah
fi
#end of script stuff
#here is the timed delay stuff
#sleep for 30 minutes
sleep 30m
#now restart and exit
myprog &
-------------------------------------------------------
as you see here the file restarts itself at the end, it sets it to the background so it can exit, then the whole thing starts over again.
doing ps -A will show myprog and sleep always running.
|