2013-12-29, 02:41
1) Enable cron in the OpenELEC settings applet.
2) In SSH, enter "crontab -e" and the nano editor will start
3) Add a line as follows:
4) Press "CTRL-X", Y, and then RETURN
5) Confirm the cron entry has been saved with "crontab -l" (that's l as in list)
6) Confirm that /sbin/crond is running with "ps aux | grep crond" - if not, you might have to reboot the Pi. Check for crond after rebooting.
With the above completed your cache will now preload at 0 (0-59) minutes past the 0 (0-23) hour on every day of the month (*, 1-31), on every month of the year (*, 1-12), on every day of the week (*, 0-6 [sun-sat]).
Or in other words, it will be run at midnight every night of the year.
2) In SSH, enter "crontab -e" and the nano editor will start
3) Add a line as follows:
Code:
0 0 * * * /storage/texturecache.py c
4) Press "CTRL-X", Y, and then RETURN
5) Confirm the cron entry has been saved with "crontab -l" (that's l as in list)
6) Confirm that /sbin/crond is running with "ps aux | grep crond" - if not, you might have to reboot the Pi. Check for crond after rebooting.
With the above completed your cache will now preload at 0 (0-59) minutes past the 0 (0-23) hour on every day of the month (*, 1-31), on every month of the year (*, 1-12), on every day of the week (*, 0-6 [sun-sat]).
Or in other words, it will be run at midnight every night of the year.