Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month, online, via Jitsi Meet.

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] cron notifications to GUI front end



On Thu, 28 Mar 2019 11:23:26 -0400
Jerry Feldman <gaf.linux at gmail.com> wrote:

> One idea I had was to write a small GUI that would cancel any
> currently scheduled shutdown and reschedule and notify the user when
> the shutdown is imminent. If the user logs off, the shutdown would
> still be in effect.

I don't think that's going to work the way you expect. One big problem
is that a process running from cron can't directly access your X server
so it can't send GUI notices.

I think you're going to need to create some kind of server (running in
your X sessions when you start them) and client (running from cron)
which tries to notify the server and handles the shutdown process.

-- 
Rich Pieri



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org