Cron - GARZ&FRICKE GUF-Yocto-34.0-r5756-0-VINCELL User Manual

Embedded computer systems
Table of Contents

Advertisement

GUF-Yocto-34.0-r5756-0
rbcfg-enable-autojobs.xml:
rbcfg-disable-autojobs.xml:
These may be installed like all other XML-configuration files via the
root@santaro:~# export TFTP=172.20.0.146
root@santaro:~# curl tftp://$TFTP/rbcfg-enable-autojobs.xml > /tmp/cfg.xml
root@santaro:~# xconfig import -y /tmp/cfg.xml
Afterwards you can query and enable/disable each
Enable
autostart
function:
root@santaro:~# sconfig autostart all
Disable
autostart
function:
root@santaro:~# sconfig autostart off
Query current state of
autostart
root@santaro:~# sconfig autostart
off
Notes:
If
sconfig
replies with its usage-information you still have an OS installed, which doesn't support en-
abling/disabling individual
If querying an
autojob
explicit settings for the
shown above.
The possible values of
the functions for different storage media individually. When this extension will be implemented and how
exactly the syntax for this will look like is still to be defined.

4.1.10 Cron

The
cron
service allows execute commands automatically to a given time.
The crond service has a startup link that points to the corresponding start script:
/etc/rc5.d/S20crond -> /etc/init.d/crond
The startup script simply starts
The cron task are configured with crontab.
crontab -e
An example script is shown in the editor and can be modified.
#------------------------------------------------------------------------------------
# Shell variable for cron
SHELL=/bin/bash
# PATH variable for cron
PATH=/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11
#------------------------------------------------------------------------------------
# Minute
Hour
Day of Month
# (0-59)
(0-23)
!
#
* /10
*
crontest
,
#------------------------------------------------------------------------------------
See the official cron documentation for syntax of this file.
20
VINCELL
User Manual
¡
¡
autojob
function:
autojob
functions. Please update your OS in this case.
function returns no reply, at all, your XML-configuration probably doesn't contain
autojob
functions, yet. Please install one of the provided XML-configuration files as
all
and
off
have been chosen on purpose to allow future extension to enable/disable
/usr/sbin/crond
as a daemon.
Month
(1-31)
(1-12 or Jan-Dec)
*
*
Enables all
autojob
functions (default behaviour).
Disables all
autojob
functions.
xconfig
tool, e.g.:
individually using sconfig.
Day of Week
(0-6 or Sun-Sat)
*
Command
date > /root/

Advertisement

Table of Contents
loading

Table of Contents