Ver Mensaje Individual
  #10 (permalink)  
Antiguo 14/06/2013, 10:53
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 y AlvaroG gracias por responder

estos son los pasos que estoy haciendo

Código BASH:
Ver original
  1. # crontab -e

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 root export DISPLAY=:0 && gnome-terminal -x bash /var/www/html/app/image/resize.sh

y continua sin funcionar (hice lo que me indico EnriqueK de arrastrar y me puso la ruta absoluta asi '/var/www/html/app/image/resize.sh' yo le quite las comillas )

que estoy haciendo mal?

Código BASH:
Ver original
  1. # crontab -e
  2. crontab: installing new crontab
  3. Tiene correo nuevo en /var/spool/mail/root

no si lo que hice esta mal ingrese a var/spool/mail/root
y abri el archivo y obtengo esto


From [email protected]omain Fri Jun 14 12:18:01 2013
Return-Path: <[email protected]>
X-Original-To: root
Delivered-To: [email protected]omain
Received: by Manizales-20.localdomain (Postfix, from userid 0)
id 3DDB7424758; Fri, 14 Jun 2013 12:18:01 -0500 (COT)
From: [email protected]omain (Cron Daemon)
To: [email protected]omain
Subject: Cron <root@Manizales-20> root export DISPLAY=:0 && gnome-terminal -x bash /var/www/html/app/image/resize.sh
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
X-Cron-Env: <SHELL=/bin/bash>
X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin>
X-Cron-Env: <MAILTO=root>
X-Cron-Env: <HOME=/>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Message-Id: <[email protected]>
Date: Fri, 14 Jun 2013 12:18:01 -0500 (COT)

/bin/bash: root: command not found

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