Ver Mensaje Individual
  #14 (permalink)  
Antiguo 14/06/2013, 14:05
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

AlvaroG gracias por responder y por tenerme paciencia pero es que apenas inicio con linux

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 bash -x /var/www/html/app/image/resize.sh

y en el correo recibo lo siguiente

+ mogrify -path ../small/ -resize 800x600 '*.gif'
mogrify: unable to open image `*.gif': No such file or directory @ error/blob.c/OpenBlob/2644.


y mira los directorios
drwxrwxrwx 2 root root 12288 jun 14 08:09 image
drwxrwxrwx 2 root root 12288 jun 14 10:15 small

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