Auto Scheduling

Hi guys,

I have a problem that can be solved using a scheduler, but unfortunately I am not supposed to (ask the client).

PROBLEM:
I have a script that once kicked off manually, will automatically kick off itself after every 15 minutes interval. Please share the code that would put this script to sleep for fifteen minutes, and then kick it off again from the beginning.

Thanks,

-CB

Not sure what kind of script and/or shell you're using, but in Bash, you can use an infinite while loop and add a sleep line at the end of the loop:

while [ 1 ]
do

your commands here

sleep 900
done

The commands will execute and then sleep for 15 minutes, then restart the loop.

Hope this helps.

I am using ksh.

why not run it in cron?

The infinite loop idea is simple and effective - is that what a deamon is? I can use crontab on the user's environment, but they don't want me to (don't know why)?

-CB