Estoy teniendo problemas al usar crontab, estoy llamando a un archivo que esta guardado en el escritorio, este archivo es muy simple.
Código:
Código: Seleccionar todo
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
import sys
from PyQt4.QtGui import *
# Create an PyQT4 application object.
a = QApplication(sys.argv)
# The QWidget widget is the base class of all user interface objects in PyQt4.
w = QWidget()
# Set window size.
w.resize(320, 240)
# Set window title
w.setWindowTitle("Hello World!")
# Show window
w.show()
sys.exit(a.exec_())
La misma prueba la hago con un archivo .py donde llamo a un txt y guardo la hora y funciona bien, ambos archivos estan en la misma ruta, habrá que darle algún permiso en particular?
Que puede ser?
Por si les sirve de ayuda este es el comando que uso en el crotab:
Código: Seleccionar todo
* * * * * /usr/bin/python /home/pi/Desktop/BKP_RPI/Programacion_final/testInicio1.py
Código: Seleccionar todo
* * * * * sudo python /home/pi/Desktop/BKP_RPI/Programacion_final/testInicio1.py # JOB_ID_7