View Single Post
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#529
Originally Posted by stats0 View Post
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?
In your script, you can start a background script e.g. using nohup or similar mechanisms. The background script then updates a cache file, and your main script can then always read from the cache file (or show "Updating..." or something while the background script runs). See this thread (or the billboard-scripts repository) for a way to force-update Billboard after your background script has finished.

See also: http://stackoverflow.com/questions/1...-in-background
 

The Following 2 Users Say Thank You to thp For This Useful Post: