Ver Mensaje Individual
  #7 (permalink)  
Antiguo 14/06/2013, 08:33
Montes28
 
Fecha de Ingreso: septiembre-2010
Mensajes: 1.853
Antigüedad: 13 años, 7 meses
Puntos: 6
Respuesta: problema para ejecutar tarea con cron

EnriqueK hice lo que me indicas y no funciona todavia (estoy como root)

* * * * 0-6 export DISPLAY=:0 && gnome-terminal -x bash /var/www/html/app/image/resize.sh

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# For details see man 4 crontabs

# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed
* * * * 0-6 export DISPLAY=:0 && gnome-terminal -x bash /var/www/html/sismogramas/image/resize.sh




Código BASH:
Ver original
  1. chmod +x resize.sh


# cat /var/log/syslog | grep resize.sh
cat: /var/log/syslog: No existe el fichero o el directorio

que estoy haciendo mal?

pruebo el script y funciona bien
Código BASH:
Ver original
  1. image]# ./resize.sh

Última edición por Montes28; 14/06/2013 a las 09:15