<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; notify</title> <atom:link href="http://www.ghacks.net/tag/notify/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Sat, 11 Feb 2012 09:52:46 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>Easy desktop notification system</title><link>http://www.ghacks.net/2010/06/08/easy-desktop-notification-system/</link> <comments>http://www.ghacks.net/2010/06/08/easy-desktop-notification-system/#comments</comments> <pubDate>Tue, 08 Jun 2010 11:16:47 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Desktop Manager]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[desktop notification]]></category> <category><![CDATA[GNOME]]></category> <category><![CDATA[messages]]></category> <category><![CDATA[notify]]></category> <category><![CDATA[popups]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=26328</guid> <description><![CDATA[Tired of having to get clever with your bash scripts so that you can be notified when something happens? What if you want instant notification on an event? Say you run a regular backup sync every, oh, 30 minutes and you want to be notified while you&#8217;re sitting at you computer the minute it happens. [...]]]></description> <content:encoded><![CDATA[<p>Tired of having to get clever with your bash scripts so that you can be notified when something happens? What if you want instant notification on an event? Say you run a regular backup sync every, oh, 30 minutes and you want to be notified while you&#8217;re sitting at you computer the minute it happens. Oh sure you can be emailed on an event, but this requires an email server setup and you have to check your email. What if you just want a simple message to pop up on your desktop informing you that your script has succeeded? Well you can have that with the notify-send command.</p><p>The notify-send command allows you to display messages right on the desktop via the notification daemon. These messages are fairly unobtrusive, fit it with your desktop scheme, and are really easy to set up in your scripts. And in this article I am going to show you how you can add this little system for easy message pop ups.</p><p><span
id="more-26328"></span><strong>Installation</strong></p><p>The notify-send tool  is a part of the libnotify package. So to install this do the following:</p><ol><li>Open up a terminal window.</li><li>Issue the command <em>sudo apt-get install libnotify-bin</em>.</li><li>Enter your sudo password.</li><li>Accept any necessary dependencies.</li></ol><p>That&#8217;s it. You are ready to start using this handy command.</p><p><strong>Usage</strong></p><p>The basic usage for the command is:</p><p><em>notify-send OPTIONS MESSAGE</em></p><div
id="attachment_26330" class="wp-caption alignleft" style="width: 276px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/06/notify_send_basic.png"><img
class="size-full wp-image-26330" src="http://www.ghacks.net/wp-content/uploads/2010/06/notify_send_basic.png" alt="" width="266" height="74" /></a><p
class="wp-caption-text">Figure 1</p></div><p>Let&#8217;s take a very simple example of popping up the message &#8220;Hello Ghacks&#8221; on the desktop. To do this you would issue the command <em>notify-send &#8220;Hello Ghacks&#8221; </em>and hit enter. When you do you will see a small message pop up at the bottom of your desktop as you see in Figure 1. Of course the appearance of this message will depend upon which desktop you are using. I am using GNOME Shell so mine will be a variation on those of you using standard GNOME.</p><p>Let&#8217;s add an image to the message (the image you see in Figure 1 is the default). To add an image you use the <em>-i </em>option. The image used must be a .png file. You can find plenty of these in the <strong>/usr/share/pixmaps</strong> directory. So I am going to use the GNOME logo to remind me to take a walk. The command would look like:</p><p><em>notify-send -i /usr/share/pixmaps/gnome-about-logo.png &#8220;Take a walk!&#8221;</em></p><div
id="attachment_26331" class="wp-caption alignright" style="width: 215px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/06/notify_send_walk.png"><img
class="size-full wp-image-26331" src="http://www.ghacks.net/wp-content/uploads/2010/06/notify_send_walk.png" alt="" width="205" height="42" /></a><p
class="wp-caption-text">Figure 2</p></div><p>And the message would look like the one you see in Figure 2.</p><p>When you use this command you will notice the messages don&#8217;t last very long. You can change that with the <em>-t</em> option. You can set this so the message stays up until the user tell it to go away (by clicking on it) or you can set it to remain in milliseconds. So let&#8217;s say you want to give yourself a message to take a walk and you want it to remain open for ten seconds. To do this the command would look like:</p><p><em>notify-send -t 10000 -i /usr/share/pixmaps/gnome-about-logo.png &#8220;Take a walk!&#8221;</em></p><p>Or, if you want that message to remain until you click it away, the command would look like:</p><p><em>notify-send -t 0 -i /usr/share/pixmaps/gnome-about-logo.png &#8220;Take a walk!&#8221;</em></p><p><strong>Final thoughts</strong></p><p>You can imagine how much easier it has now become to notify yourself when a script has finished. You no longer have to rely on email messages or hacked-up notifications. Linux has a nice, built-in notification system you can use in your scripting or your cron jobs to let you know the things you need to know.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/06/08/easy-desktop-notification-system/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>Notify file monitor</title><link>http://www.ghacks.net/2006/04/10/notify-file-monitor/</link> <comments>http://www.ghacks.net/2006/04/10/notify-file-monitor/#comments</comments> <pubDate>Mon, 10 Apr 2006 06:37:34 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Tools]]></category> <category><![CDATA[file monitor]]></category> <category><![CDATA[notify]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Windows]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=386</guid> <description><![CDATA[<a
href="http://www.pc-tools.net/win32/notify/" target="_blank">Notify</a> is a small freeware application for windows that monitors files and directories that you specify and notifies you when those are changed. The small size of 15 Kb makes it an ideal background task, it uses almost no cpu time and little memory.]]></description> <content:encoded><![CDATA[<p><a
href="http://www.pc-tools.net/win32/notify/" target="_blank">Notify</a> is a small freeware application for windows that monitors files and directories that you specify and notifies you when those are changed. The small size of 15 Kb makes it an ideal background task, it uses almost no cpu time and little memory.</p><blockquote><p> Can be used, for example, to detect incoming information over a network or to detect tampering of files</p></blockquote><p><span
id="more-386"></span></p><p>[tags]freeware, notify, windows, monitor, application, tool, utility[/tags]</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2006/04/10/notify-file-monitor/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
