You are not logged in.

#1 2021-10-27 00:29:54

CaeriTech
Member
Registered: 2021-07-12
Posts: 42

[SOLVED] root cron job notifications

Synopsis: Run the script as a normal user and sudo only those commands that need it.

The Tip: provided here in the Desktop notifications Wiki does not produce any notifications for either user or root cron jobs.

However, I found this, answer #39 and it works but only for user cron jobs and not for root cron jobs.

Here are the versions of the related packages:

cronie 1.5.7-2
libnotify 0.7.9-2
notification-daemon 3.20.0-4
xfce4-notifyd 0.6.2-2

I start the script that extracts the DBUS_SESSION_BUS_ADDRESS variable as the first entry in the Openbox autostart script and I have added the sourcing of the file containing it to the cron job script.

What am I missing here?

[EDIT]
I should add that the notifications appear if the script is run from a terminal by a user but not if run from a terminal as root so it may, strictly speaking, not be a cron job issue.

Last edited by CaeriTech (2023-03-24 20:22:14)


-=[ LIVE enabled UEFI with redundant syslinux pure systemd detached LUKS header partitionless encrypted GPT SSDx3 RAID0 wayland only because I can.  ]=-
    Backward compatibility is for the masses. There's no dual-boot here.

    [CaeriTech remains only artificially intelligent.  Turing would be aghast at just how artificial.]

Offline

Board footer

Powered by FluxBB