Hey I am running into an issue when trying to run a cron job with a python script from ubuntu. This is what I have done:
1.) Wrote a simple tkinter app: source for
In linux mint 17 I had to do the following:
Make the scripts executable
~$chmod +x script.py
You have to enable X ACL for localhost to connect to for GUI applications to work
~$ xhost +local:
Add the following line in the crontab "env DISPLAY=:0.0"
* * * * * env DISPLAY=:0.0 /usr/bin/python /your-script-somewhere.py
And one more line to crontab ">/dev/null 2>&1"
* * * * * env DISPLAY=:0.0 /usr/bin/python /your-script-somewhere.py >/dev/null 2>&1
you can check errors in /var/log/syslog file
~$ tail -20 /var/log/syslog
more info:
https://help.ubuntu.com/community/CronHowto