Linked Questions
22 questions linked to/from Using notify-send with cron
4
votes
1
answer
10k
views
How do I run a cronjob on a display? [duplicate]
I've added the (f)cronjob
*/1 * * * * DISPLAY=:0 notify-send testing
to display a notification every minute, but it doesn't work; why not?
(Using i3.)
6
votes
1
answer
5k
views
How to use notify-send to notify users as root? [duplicate]
#!/bin/bash
export DISPLAY=:0
state=$(upower -i $(upower -e | grep BAT) | grep --color=never -E "state" )
stat=${state:25:32}
batperct=$(upower -i $(upower -e | grep '/battery') | grep -E "percentage:...
2
votes
1
answer
5k
views
How can I execute notify-send from root? [duplicate]
I'm working on a bash script which requires root privileges, but which I'd like to give the ability to notify a non-root user of certain alerts via notify-send in GNOME (or any other desktop shell ...
0
votes
1
answer
380
views
crontab doesn't work corectly [duplicate]
I want to make some notification to user every day at the same time:
any_hour:50
And I wrote to crontab -e:
50 * * * * DISPLAY=:0 /usr/bin/notify-send -i /home/nazar/Pictures/icons/...
1
vote
0
answers
106
views
procmail and libnotify: how to display emails received? [duplicate]
I am trying to get procmail to work with libnotify (notify-send). My .procmailrc has a couple of recipes, which just essentially filter mails into different folders.. nothing fancy.
Most of my ...
0
votes
1
answer
86
views
Why os.sytem won't show desktop notification to user? [duplicate]
I have a simple Python script here:
#! /usr/bin/python
import os
os.system('notify-send Hello "This is a message"')
When I, as a normal user, run the script in terminal as ./notification.py, a ...
53
votes
3
answers
90k
views
Run script every 30 min with systemd
I would like to execute a script every 30 min after booting into the system. I know you can use cron, but I don't plan to use this feature often therefore I'd like to try it with systemd.
So far I ...
35
votes
6
answers
26k
views
How do I make my laptop sleep when it reaches some low battery threshold?
I'm using Ubuntu, but I have i3 as my window manager instead of a desktop environment.
When my battery reaches 0%, the computer will just abruptly shut down, no warning or anything.
Is there a ...
25
votes
8
answers
31k
views
Show a notification across all running X displays
Using the command line, I'd like show a notification on every running X display. ( and running console )
Something like:
notify-send-all 'Warning' 'Nuclear launch in 5 minutes, please evacuate'
Is ...
12
votes
3
answers
16k
views
notify-send not working under ssh
Maybe this is answered somewhere else, but I didn't see it.
I am running Ubuntu 14.04. When I SSH into my machine, for example:
ssh <user>@<machineip> notify-send "Hello"
I don't see ...
9
votes
5
answers
9k
views
How can I use cron to display messages on the screen via notify-send
I am toying around with notify-send and cron (on an Arch machine) and I can't figure out a way to combine them:
I tried the solution given here and here, but neither worked. How can I use them?
EDIT:...
4
votes
1
answer
3k
views
Notify-send doesn't work at Cinnamon
I am using Linux Mint 17.
I want to be informed every 50 min, at every hour for small break.
Here is cron job:
nazar@desktop ~ $ crontab -l
DISPLAY=:0.0
XAUTHORITY=/home/matrix/.Xauthority
00 13 * * ...
0
votes
3
answers
2k
views
Unable to send notifications from cron job
I'm trying to use a cron job to see when the battery gets lower than a given threshold, and then to send a battery critical notification. However, when I make the cron job execute a script every ...
2
votes
1
answer
3k
views
systemd service not executing the python script
I was making a battery notifier script for my raspberry pi3. The script is executing when I do
/usr/bin/python /home/pi/Documents/shutdown.py
and showing the popup notifications. However the service ...
1
vote
1
answer
1k
views
Does cron run graphical applications as root?
I've automated a daily restart for Firefox (edited by running crontab -e) and forgot to take into account whether the program would launch with administrator privileges.
killall -s SIGTERM firefox; ...