This is a read-only archive. Find the latest Linux articles, documentation, and answers at the new Linux.com!

Linux.com

cron can't do this either

Posted by: Anonymous [ip: 71.142.66.74] 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
but
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)

#

Return to Scheduling jobs based on filesystem activity with incron