Crond
Revision as of 22:31, 20 July 2009 by Hopspitfire (talk | contribs) (New page: crond is a system that allows command to be run at specified intervals. Do not use the built in crontab -e as it is overwritten on each boot. Optware has cron available as an installab...)
crond is a system that allows command to be run at specified intervals.
Do not use the built in crontab -e as it is overwritten on each boot.
Optware has cron available as an installable package, and using /opt/etc/cron.d/ for cron files will not conflict with any Palm files.
sudo -i mount -o remount,rw / ipkg-opt update ipkg-opt install cron /opt/bin/crontab -e # Add script and intervals here mount -o remount,ro /
This does not seam to work when the phone's screen turns off. I tried it plugged in for 2 min then unplugged and turned the screen off for 2 min,*/1 * * * echo `date` >> sleep.log and got:
# cat sleep.log Wed Jul 1 18:27:01 CDT 2009 Wed Jul 1 18:28:01 CDT 2009 Wed Jul 1 18:30:16 CDT 2009 ## this is when i turned the screen back on, seams to play catch up Wed Jul 1 18:30:16 CDT 2009