Posted by: Anonymous
on August 22, 2008 06:56 AM
IIRC, cron can't run graphical applications either. I think it has something to do with the lack of "controlling terminal".
If you do a `ps ax' you will see
3112 ? S 0:00 /usr/sbin/crond
3760 pts/0 Rs 0:00 -/bin/bash
The question mark shows that the crond's stdin/stdout/stderr are not associated with an interactive terminal and the processes it spawns can't inherit such a terminal.
(This is merely a guess)