Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Run a cron process more than every minute' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Run a cron process more than every minute
Authored by: skrawcke on May 16, '07 08:23:56AM
if you wanted to do this for a set period of time like 12 hours you could do.
for X in {1..2880}
do
open /path/to/getpic.app
sleep 15
done

this will run the /path/to/getpic.app 2880 times once every 15 sec.
you could also add a few lines like

/bin/date > /var/log/nameofsomelog
echo "Ran /path/to/getpic.app # $X" > /var/log/nameofsomelog


[ Reply to This | # ]