next up previous contents
Next: shutdowm Up: Control de tareas Previous: 229 Para practicar: at

cron (anacron)

Se trata de ``la herramienta'' que usa Linux para planificar tareas. Para conocerla mejor:

$man cron
Veamos el contenido de un fichero de configuración de cron básico:

$ cat /etc/crontab 

# /etc/crontab: system-wide crontab

# Unlike any other crontab you don't have to run the `crontab'

# command to install the new version when you edit this file.

# This file also has a username field, that none of the other crontabs do.

 

SHELL=/bin/sh

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

 

# m h dom mon dow user  command

25 6    * * *   root    test -e /usr/sbin/anacron || run-parts -report /etc/cron.daily

47 6    * * 7   root    test -e /usr/sbin/anacron || run-parts -report /etc/cron.weekly

52 6    1 * *   root    test -e /usr/sbin/anacron || run-parts -report /etc/cron.monthly

#

Expliquemos un poco este fichero, las líneas tienen la forma:

fecha nombre_usuario comando



Footnotes

.../etc/cron.monthly)2.26
Para controlar las tareas cada hora /etc/cron.hourly
... SIZE="-1">2.27
anacron es un programador de tareas similar a cron, pero a diferencia de este último no requiere que el sistema esté en ejecución permanentemente.

next up previous contents
Next: shutdowm Up: Control de tareas Previous: 229 Para practicar: at

2004-04-21