Date: Thu, 28 Jul 2016 11:16:21 -0400 From: The Lost Admin <thelostadmin@gmail.com> To: twilight <pipfstarrd@openmailbox.org> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: Using notify-send for notifications from cron-run scripts Message-ID: <76DD0FF9-6518-4B60-9718-28495F038060@gmail.com> In-Reply-To: <22638a43-6e29-c8ba-9535-decf2c436792@openmailbox.org> References: <22638a43-6e29-c8ba-9535-decf2c436792@openmailbox.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Twilight, You probably need use xauth to export the X11 authentication cookie from = your user account to the root account. The Lost Admin thelostadmin@gmail.com > On Jul 22, 2016, at 3:41 PM, twilight <pipfstarrd@openmailbox.org> = wrote: >=20 > Hello guys! >=20 > I'm trying to do some automation on my machine and I would like to = have > freebsd-update and portsnap ran weekly. I want to send a notification = to > my X session after completing the update fetch, that new updates are > available (updating automatically would not be desired as a good case > due to uncontrollable results). >=20 > But I've came across a problem: fetching fresh ports and freebsd = updates > requires the scripts to be ran from root, but in root session I'm = unable > to notify-send anything to my display. >=20 > I've tried to set `export DISPLAY=3D:0`, but that didn't work out. > Also I've tried to use `env DISPLAY=3D:0 su twilight -c 'notify-send > "...."'` but that didn't work out either. > Searching the net also lead me up to the same advances. >=20 > What am I doing wrong? I'd be very thankful for any advice >=20 >=20 > --=20 > Cheers~ >=20 > PGP key fingerprint: > 07B3 2177 3E27 BF41 DC65 CC95 BDA8 88F1 E9F9 CEEF >=20 > You can retrieve my public key at pgp.mit.edu. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?76DD0FF9-6518-4B60-9718-28495F038060>