PDA

View Full Version : [SOLVED] How to write to the notification applet?



AlexZaim
February 11th, 2010, 10:59 PM
Hello, i want to write text to the notification applet. I want it to show me the text.

I made a small script for loading some driver modules and i want to have some feedback of the results after the execution. I'm using shortcut keys to run them. So, any advices?

tgalati4
February 12th, 2010, 12:16 AM
#!/bin/sh
# Super cheesy script to wake my server and put up a notification to that effect
#
/usr/bin/wakeonlan 00:0D:56:FE:B9:D6
sleep 3
/usr/bin/wakeonlan 00:0D:56:FE:B9:D6
sleep 3
/usr/bin/wakeonlan 00:0D:56:FE:B9:D6
sleep 2
notify-send --icon=/home/tgalati4/Projects/scripts/server.svg "GC-Development Server is Booting" "You'll be up in 3 minutes."
sleep 200
notify-send --icon=/home/tgalati4/Projects/scripts/server.svg "GC-Development Server is Alive" "You can login now."
exit 0

AlexZaim
February 12th, 2010, 10:08 AM
That did it. I had to install libnotify-bin . Thanks