Re: [SLUG] x window tk script to run from cron

From: Dylan Hardison (dylanwh@gmail.com)
Date: Sun Feb 27 2005 - 12:58:40 EST


On Sun, 27 Feb 2005 12:50:47 -0500, Larry Brown
<larry.brown@dimensionnetworks.com> wrote:
> Hello gang, anyone ever come across this?
>
> I have written a small script that will check a condition. If the
> condition check fails, it is supposed to produce a window in KDE that
> produces a message based on the condition response. This way I am
> alerted to the situation. I can run the script fine from the shell.
> However, I do not get a window when running it from cron. I have tried
> to use suid to run the script as me, but when running the script as
> another user it fails to connect to 0:0 due to security. Temporarily I
> can bypass that security by allowing another user to connect to my
> x-server, but I don't think I can do this from cron.
>
> Any ideas?
Well, you could export DISPLAY=:0.0 in a shell script, then call the Tk script.
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:39:50 EDT