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.
We not provide any direct support for the Open Source preinstalled software but, 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 boards.
Please note that all of the preinstalled software, used on the Acme Systems products, are Open Source so you have
to check the license terms provided by the authors (usually the GPL) before using it in any commercial or non-commercial
product, by yourself.
Before to contact us please note that WE ARE MAINLY HARDWARE DESIGNERS
and NOT LINUX GURUS and therefore could be better to post your questions to the
Acme Systems forum and ensure
that all of the site contributors and large software community can read and reply to
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.