
On Tuesday 23 September 2003 15:57, eddie wrote:
Just out of curiosity I tried it and it doesn't work. I put it to my colleague who seems to think that it fails because cron needs to activate the xserver which it is unable to do. So if there is a way to get cron to run x apps then I guess it will work.
Perhaps someone else may be able to chip in and provide the missing link.
It needs to access an X server, yes. If there is one running, make sure the cron job is started as the user that runs the X server, and that the environment variable DISPLAY is set correctly for cron. If there isn't one running you need to start one. If it's a headless box you could consider running the X virtual frame buffer. The same considerations for the running user and the DISPLAY variable apply