EnriqueK y AlvaroG gracias por responder
estos son los pasos que estoy haciendo
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# crontab -e
crontab: installing new crontab
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