Linked Questions

2
votes
1answer
3k 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.)
4
votes
1answer
1k 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
1answer
3k 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
1answer
297 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
0answers
79 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
1answer
60 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 ...
25
votes
6answers
12k 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 ...
16
votes
6answers
19k 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 ...
22
votes
2answers
30k 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 ...
10
votes
2answers
11k 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 ...
7
votes
5answers
6k 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:...
3
votes
1answer
2k 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 * ...
1
vote
1answer
2k 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 ...
0
votes
1answer
857 views

bash : send rsync status using notify-send

I'm using rsync to push some changes to a server, for that I made a bash script and I want to show a status notification in the desktop (I'm using Linux Mint 18 Cinnamon) Is it possible to send the ...
0
votes
2answers
136 views

Use crontab on Raspberry

I would like to use crontab in Bash on a Raspberry Pi to open a mp4 video at certain times. I am very much a newby can anybody give me any advice or direct me where to dig further. I had previously ...

15 30 50 per page