[PLUG] SOLVED Make cron send an e-mail upon completion

Tomas Kuchta tomas.kuchta.lists at gmail.com
Tue Jan 28 23:57:07 UTC 2020


The topic to research would be X11 authorization and MIT cookies.

It will require commands to run on both sides of the command line: a) your
desktop will need to authorize the connection (every time you start
desktop) b) Cron using that authorization to display the window.

The easiest to work around is probably for Cron to write a message to a
file and some forever running desktop script checking that file and open
the dialog.

Another alternative would be to use system messaging infrastructure in
Gnome/KDE.

One could also send a message to all user's consoles by ancient command
wall.

Hope that helps,
Tomas



On Tue, Jan 28, 2020, 16:58 wes <plug at the-wes.com> wrote:

> On Tue, Jan 28, 2020 at 1:21 PM Johnathan Mantey <manteyjg at gmail.com>
> wrote:
>
> > I'm only paying half attention to this.
> > You want to run as root, but you are using your own Xauth?
> > I'm no X11 wizard, but that doesn't seem like it would work.
> > Doesn't /root have a Xauthority file that should be used for root run
> > features?
> >
> >
> This only exists if the root user were to have logged in to X at some
> point. This is disabled by default.
>
> Additionally, the goal here is to pop a dialog on the jjj user's X desktop
> from a command run by root.
>
> -wes
> _______________________________________________
> PLUG mailing list
> PLUG at pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>



More information about the PLUG mailing list