I have a production server that runs several bash scripts on the local desktop. Two scripts run all the time and don't need to be stopped. I have a third Python script that I need to start at 9AM. It automatically quits at 1:30AM.
If I add the following to my cron file, it successfully launches leafpad.
* * * * * env DISPLAY=:0 leafpad
As an example, this doesn't work:
* * * * * env DISPLAY=:0 /bin/bash
* * * * * env DISPLAY=:0 /usr/bin/python /scripts/mypython.py
and the script does start (it sends a startup email), but it's not running on the desktop. What am I missing?