Home About us Send money Contacts Terms


www.acmesystems.it

Please note:This article is obsolete or related to an obsolete product.

How to install crond and crontab

How to add crond and crontab to the Busybox configuration

Configure Busybox

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:


Go back to the SDK root folder and edit the main Makefile.

Search the setting of SUBDIRS variable:
...
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:

make

and flash the FOX as explain on this article

Try crond

Login the FOX board and type:

crontab -e

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.

Related links




Acme Systems srl
Via Aldo Moro 53 - 00055 Ladispoli (RM) - Italy
P.IVA/C.F. 08114831004
Tel +39.06.99.12.187 - Fax +39.06.622.765.31
http://www.acmesystems.it
Iscritta al Registro delle Imprese di Roma al n. 08114831004


Atmel© Certified Partner

Documentation Terms of Use
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.
Creative Commons License