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


Click here to return to the 'Calculate sleep time--Correction' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Calculate sleep time--Correction
Authored by: googoo on May 16, '07 05:14:56PM
OK. I did not check my code. This version will work.

#!/bin/sh
while : ; do
    open /path/to/getpic.app
    sleepTime=$((15-`date +%S`%15))
    sleep $sleepTime
done

-Mark



[ Reply to This | # ]