The following changes have been made to a beta 296.1
* cron/crontab have been installed in the busybox
* I removed a number of useless busybox commands (saves flash)
* Start only 1 kloned prefork child (saves memory)
To update to the beta
# /etc_ro_fs/update-dev hah-beta.dbzoo.com
To get cron working after upgrading to the beta you need to do the following
# ln -s /etc_ro_fs/init.d/cron /etc/init.d/cron
# ln -s /etc_ro_fs/rc1.d/S41crond /etc/rc1.d/S41crond
To get cron running you can either reboot or start it manually.
# /etc/init.d/cron start
http://adminschoice.com/crontab-quick-reference
crontab -e Edit your crontab file, or create one if it doesnt already exist.
crontab -l Display your crontab file.
crontab -r Remove your crontab file.
I plan that these would probably just make calls to scripts that would send xAP events.
So something like this would turn on a light at 9am every Monday and off again the same day at 5pm.
* 9 * * 1 lua /etc/cron/turnonlight.lua
* 17 * * 1 lua /etc/cron/turnofflight.lua
The LUA scripts would be as simple as
require("xap")
xap.sendShort(string.format[[
insert xap-payload here
]])
Just thoughts and some progress on getting a local scheduler working.
Brett