2008年4月15日 星期二

Run GUI programs with cron on Linux

you have to tell cron what display the program should use. For that you use:

export DISPLAY=:0


so you'll add the export variable like this:

* * * * * export DISPLAY=:0 && somecommand

沒有留言: