On the FOX board crond and crontabs are implemented inside Busybox so you have to add them from the Busybox configuration.
cd packages/apps/busybox/devboard make menuconfig
Enable [*] crond and [*] crontab in the --> Miscellaneous Utilities section:
Exit and Save the configuration.
Now add the init script in the SDK to create the right directory inside the FOX fimage
end the script to start and stop the crond daemon.
Go in the packages/initscripts folder and create a folder named crond then copy inside it these files:
... SUBDIRS = \ packages/romfs_meta/common \ ...
and add at the end of this list the line "packages/initscripts/crond", ie:
... packages/devices/scsi \ packages/devices/ttyusb \ packages/initscripts/crond
Now create the new fimage typing:
and flash the FOX as explain on this article
Login the FOX board and type:
Press i to switch in insert mode and type:
* * * * * echo "Hello" >> /var/crondtest
Press ESC and :wq to save.
Each 1 minute a new Hello line will be add to the /var/crondtest file. To check is type:
tail -f /var/crondtest
and wait 1 munute.
Atmel© Certified Partner
Acme Systems provides this documentation "as is" without warranty or guarantees of any kind. The maintainer of this site (Sergio Tanzilli), has gone to a great deal of effort into making this documentation as correct as possible. Acme Systems does not provide any direct support for the Open Source preinstalled software but does provide, through these pages and forum posts, all of the information required to obtain the sources, install, use and update the Open Source software that can be run on the Acme platforms. Please note that all of the preinstalled software, used on the Acme Systems products, are Open Source and you will need to check the license terms provided (usually the GPL) by each author before using it in any commercial or non-commercial product, by yourself. Before sending emails or calling the Acme staff please note that WE ARE MAINLY HARDWARE DESIGNERS and NOT LINUX GURUS and therefore ask that you post your questions directly to the forum listed below and ensure that all of the site contributors and large software community will read and reply to your questions.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.