View Single Post
Posts: 24 | Thanked: 13 times | Joined on Oct 2011
#518
I have a script ready, which gets the travel times in current traffic from google, for different routes. The idea is to run the query every 15 minutes on weekday evenings, so that I can determine fastest route in current traffic.
I can't directly run the script from Billboard, as it takes about 2 seconds for curl to get the data, and billboard would time out. I need to cache the result (in a file), and have billboard display it.

I just found out that the N9 doesn't have cron on it, and profilematic isn't very suited to the task. How can I get the script to run every 15 minutes during the scheduled times? Is using sleep (15*60) in a shell script power efficient?