Re: [SLE] crontab script has X server problem
SuseUser9X_at_aol.com
Date: 09/23/04
- Previous message: Rikard Johnels: "Re: [SLE] [General] How to check how a RPM is built"
- Maybe in reply to: SuseUser9X_at_aol.com: "[SLE] crontab script has X server problem"
- Next in thread: Danny Sauer: "Re: [SLE] crontab script has X server problem"
- Reply: Danny Sauer: "Re: [SLE] crontab script has X server problem"
- Reply: Ken Schneider: "Re: [SLE] crontab script has X server problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 23 Sep 2004 16:11:22 EDT To: suse-linux-e@suse.com
Unfortunately no. I have the export $DISPLAY:1.0 in the script.
This works when I'm logged in as ROOT but does not display when
the crontab is executed and anyone else in logged in.
SuseUser9X wrote regarding '[SLE] crontab script has X server problem' on
Thu, Sep 23 at 07:18:
> I have a script running thru crontab that calls a QT popup
> (named shutdown_warning). The popup does not display on the
> screen and the error received is:
>
> shutdown_warning: cannot connect to X server
>
> The script calls "shutdown_warning" from roots home directory.
> The crontab is being executed from root.
>
> It displays fine on the user console if, as root, I execute the
> script and export $DISPLAY:1.0
>
> I need this popup to display on the user console and all
> remote console connections.
>
> Any help would be appreciated.
Is it enough to just put
DISPLAY=1:0
at the beginning of the crontab file that describes the job? If that
environment variable is all that's missing, that's all you have to do.
--Danny
- Previous message: Rikard Johnels: "Re: [SLE] [General] How to check how a RPM is built"
- Maybe in reply to: SuseUser9X_at_aol.com: "[SLE] crontab script has X server problem"
- Next in thread: Danny Sauer: "Re: [SLE] crontab script has X server problem"
- Reply: Danny Sauer: "Re: [SLE] crontab script has X server problem"
- Reply: Ken Schneider: "Re: [SLE] crontab script has X server problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|