For me, it is impossible to use cron to run a GUI program when not logged in
- From: www <xsli2@xxxxxxxxx>
- Date: Mon, 14 May 2012 10:42:04 -0700 (PDT)
(I have posted two days ago. The post may be unclear. Re-post with some re-phrasing)
Suppose my script run_gui.sh can be run successfully:
env -i /path/run_gui.sh
Within run_gui.sh, there are:
export XAUTHORITY=xxx
export DISPLAY=:0.0
(My Java gui program automatically runs for about one minute and exit automatically, no human interaction needed). If I put run_gui.sh on cron and logged out(These linux machines are shared desktops, not my personal machines).. Our IT support told me that my gui program have no place to put the display.(Since I have logged out, everything has closed). I told them that many people on newsgroup say that it is possible and they don't think so.
Another problem is that, since I was not logged in when the cron job("run_gui.sh") was running, so there is no XAUTHORITY value.
I am just confused: many people say it is possible to run a GUI program by cron. I assume that means they are not logged in when the cron job is run. How come it is impossible for me?
Thank you very much.
.
- Follow-Ups:
- Prev by Date: Re: Copy/paste between clipboard and command line terminal?
- Next by Date: Re: For me, it is impossible to use cron to run a GUI program when not logged in
- Previous by thread: Re: Copy/paste between clipboard and command line terminal?
- Next by thread: Re: For me, it is impossible to use cron to run a GUI program when not logged in
- Index(es):
Relevant Pages
|