Am using Iris Mini to filter the blue light at night, it works pretty well but having to execute it manually is annoying. So am trying to use cron to start it each night at 8PM.
This is what i have written executing crontab -e. The command works if i execute it in the terminal
0 20 * * * sh /home/jogarcia/Software/open-iris-mini.sh
#!/bin/bash export DISPLAY=0:. /home/jogarcia/Software/iris-mini
I also executed
xhost +localhost for testing (before the time of the cron tab).
Searching in the logs with
grep CRON /var/log/syslog I found this lines that seems to suggest that is actually been executed:
Nov 2 20:00:01 my-computer-is-name CRON: (user) CMD (sh /home/jogarcia/Software/open-iris-mini.sh)
But it isn't working because i can't see the results on my screen (it should display a kind of orangish color) am really lost, I don't know what am doing wrong.
To see the errors I installed a mail service.
Local mail error
QXcbConnection: Could not connect to display 0:.