Pop up a message on the GUI from cron

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












In KDE, I find that if I echo something to pts/0:



me@mypc:~$ echo hello > /dev/pts/0


I get a message flash sent to myself.



I'd like to make a cron job to send similar messages to myself regularly. How can I do this?



P.S. I know that Ctrl+Alt+F7 switches to the GUI, but echoing to /dev/tty7 just gives me a permission denied error.










share|improve this question























  • If you can think of a better title, feel free to change it.
    – cst1992
    Sep 4 '16 at 7:53










  • @Thomas notify-send is exactly what I was looking for. Thanks! If you post that as an answer, I'll accept it.
    – cst1992
    Sep 4 '16 at 16:51














up vote
2
down vote

favorite












In KDE, I find that if I echo something to pts/0:



me@mypc:~$ echo hello > /dev/pts/0


I get a message flash sent to myself.



I'd like to make a cron job to send similar messages to myself regularly. How can I do this?



P.S. I know that Ctrl+Alt+F7 switches to the GUI, but echoing to /dev/tty7 just gives me a permission denied error.










share|improve this question























  • If you can think of a better title, feel free to change it.
    – cst1992
    Sep 4 '16 at 7:53










  • @Thomas notify-send is exactly what I was looking for. Thanks! If you post that as an answer, I'll accept it.
    – cst1992
    Sep 4 '16 at 16:51












up vote
2
down vote

favorite









up vote
2
down vote

favorite











In KDE, I find that if I echo something to pts/0:



me@mypc:~$ echo hello > /dev/pts/0


I get a message flash sent to myself.



I'd like to make a cron job to send similar messages to myself regularly. How can I do this?



P.S. I know that Ctrl+Alt+F7 switches to the GUI, but echoing to /dev/tty7 just gives me a permission denied error.










share|improve this question















In KDE, I find that if I echo something to pts/0:



me@mypc:~$ echo hello > /dev/pts/0


I get a message flash sent to myself.



I'd like to make a cron job to send similar messages to myself regularly. How can I do this?



P.S. I know that Ctrl+Alt+F7 switches to the GUI, but echoing to /dev/tty7 just gives me a permission denied error.







x11 notifications






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 8 mins ago









don_crissti

48.4k15129158




48.4k15129158










asked Sep 4 '16 at 7:53









cst1992

1154




1154











  • If you can think of a better title, feel free to change it.
    – cst1992
    Sep 4 '16 at 7:53










  • @Thomas notify-send is exactly what I was looking for. Thanks! If you post that as an answer, I'll accept it.
    – cst1992
    Sep 4 '16 at 16:51
















  • If you can think of a better title, feel free to change it.
    – cst1992
    Sep 4 '16 at 7:53










  • @Thomas notify-send is exactly what I was looking for. Thanks! If you post that as an answer, I'll accept it.
    – cst1992
    Sep 4 '16 at 16:51















If you can think of a better title, feel free to change it.
– cst1992
Sep 4 '16 at 7:53




If you can think of a better title, feel free to change it.
– cst1992
Sep 4 '16 at 7:53












@Thomas notify-send is exactly what I was looking for. Thanks! If you post that as an answer, I'll accept it.
– cst1992
Sep 4 '16 at 16:51




@Thomas notify-send is exactly what I was looking for. Thanks! If you post that as an answer, I'll accept it.
– cst1992
Sep 4 '16 at 16:51










2 Answers
2






active

oldest

votes

















up vote
4
down vote



accepted










If you want to send a pop up message to a user logged into a Desktop Environment, have a look at notify-send.






share|improve this answer






















  • And see unix.stackexchange.com/questions/10121/… about accessing X11 from cron.
    – Gilles
    Sep 5 '16 at 22:14

















up vote
1
down vote













Are you looking for the write command? This command allows you to send a message to a given user, which is then printed on his terminal/console. You can optionally specify the tty to send the message to.






share|improve this answer




















  • I know write already. I'm looking for a GUI alternative.
    – cst1992
    Sep 4 '16 at 16:50










Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f307772%2fpop-up-a-message-on-the-gui-from-cron%23new-answer', 'question_page');

);

Post as a guest






























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
4
down vote



accepted










If you want to send a pop up message to a user logged into a Desktop Environment, have a look at notify-send.






share|improve this answer






















  • And see unix.stackexchange.com/questions/10121/… about accessing X11 from cron.
    – Gilles
    Sep 5 '16 at 22:14














up vote
4
down vote



accepted










If you want to send a pop up message to a user logged into a Desktop Environment, have a look at notify-send.






share|improve this answer






















  • And see unix.stackexchange.com/questions/10121/… about accessing X11 from cron.
    – Gilles
    Sep 5 '16 at 22:14












up vote
4
down vote



accepted







up vote
4
down vote



accepted






If you want to send a pop up message to a user logged into a Desktop Environment, have a look at notify-send.






share|improve this answer














If you want to send a pop up message to a user logged into a Desktop Environment, have a look at notify-send.







share|improve this answer














share|improve this answer



share|improve this answer








edited Sep 5 '16 at 8:23









cst1992

1154




1154










answered Sep 4 '16 at 17:12









Thomas

3,64141225




3,64141225











  • And see unix.stackexchange.com/questions/10121/… about accessing X11 from cron.
    – Gilles
    Sep 5 '16 at 22:14
















  • And see unix.stackexchange.com/questions/10121/… about accessing X11 from cron.
    – Gilles
    Sep 5 '16 at 22:14















And see unix.stackexchange.com/questions/10121/… about accessing X11 from cron.
– Gilles
Sep 5 '16 at 22:14




And see unix.stackexchange.com/questions/10121/… about accessing X11 from cron.
– Gilles
Sep 5 '16 at 22:14












up vote
1
down vote













Are you looking for the write command? This command allows you to send a message to a given user, which is then printed on his terminal/console. You can optionally specify the tty to send the message to.






share|improve this answer




















  • I know write already. I'm looking for a GUI alternative.
    – cst1992
    Sep 4 '16 at 16:50














up vote
1
down vote













Are you looking for the write command? This command allows you to send a message to a given user, which is then printed on his terminal/console. You can optionally specify the tty to send the message to.






share|improve this answer




















  • I know write already. I'm looking for a GUI alternative.
    – cst1992
    Sep 4 '16 at 16:50












up vote
1
down vote










up vote
1
down vote









Are you looking for the write command? This command allows you to send a message to a given user, which is then printed on his terminal/console. You can optionally specify the tty to send the message to.






share|improve this answer












Are you looking for the write command? This command allows you to send a message to a given user, which is then printed on his terminal/console. You can optionally specify the tty to send the message to.







share|improve this answer












share|improve this answer



share|improve this answer










answered Sep 4 '16 at 9:52









ph0t0nix

508416




508416











  • I know write already. I'm looking for a GUI alternative.
    – cst1992
    Sep 4 '16 at 16:50
















  • I know write already. I'm looking for a GUI alternative.
    – cst1992
    Sep 4 '16 at 16:50















I know write already. I'm looking for a GUI alternative.
– cst1992
Sep 4 '16 at 16:50




I know write already. I'm looking for a GUI alternative.
– cst1992
Sep 4 '16 at 16:50

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f307772%2fpop-up-a-message-on-the-gui-from-cron%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?