[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cron no funciona



aca les pongo el archivo del cron y ninguna tarea funciona, para
probar el cron puse una tarea a que se ejecutara cada 5 minutos y
nada, algun consejo?

Permisos----
-rwxr-xr-x 1 root root 4296 2006-11-02 09:43 lr_log2report

archivo-----
# /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
# and files in /etc/cron.d. These files also have username fields,
# 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
17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / &&
run-parts --report /etc/cron.daily )
47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / &&
run-parts --report /etc/cron.weekly )
52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / &&
run-parts --report /etc/cron.monthly )

#OJO: al ejecutar comando siempre poner el path completo del comando
#apagar la pc
# todos los sabados a las 8PM
#00 20 * * 6 /sbin/shutdown -h now

#Generar el reporte del proxy squid
#todos los dias a las 11:45
45 23 * * * root  /usr/bin/lr_log2report --output html squid_access
/var/log/squid/access.log /var/www/squid/$(date +"%d-%m-%Y_%H-%M")

#Generar el reporte del cortafuegos
#todos los dias a las 11:55
55 23 * * * root  /usr/bin/lr_log2report --output html iptables
/var/log/iptables.log /var/www/cortafuegos/$(date +"%d-%m-%Y_%H-%M")

*/5 * * * * root /usr/bin/lr_log2report --output html squid_access
/var/log/squid/access.log /var/www/squid/$(date +"%d-%m-%Y_%H-%M")
#


--
visita http://parquesoftibague.com/
juega http://ogame.com.es/
riete http://blog.smaldone.com.ar/2006/12/10/no-tener-ni-idea/

Si el SO que usas es windows, intentar usar Linux Debian [1] o Linux Ubuntu [2]

[1] http://www.debian.org/intro/about.es.html
[2] http://www.ubuntu-es.org/ubuntu/introduccion

Linux User #449182



Reply to: