<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Send an Alert to Notification Center from the Command Line in OS X</title>
	<atom:link href="http://osxdaily.com/2012/08/03/send-an-alert-to-notification-center-from-the-command-line-in-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://osxdaily.com/2012/08/03/send-an-alert-to-notification-center-from-the-command-line-in-os-x/</link>
	<description>News, tips, software, reviews, and more for Mac OS X, iPhone, iPad</description>
	<lastBuildDate>Sat, 25 May 2013 20:42:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: James</title>
		<link>http://osxdaily.com/2012/08/03/send-an-alert-to-notification-center-from-the-command-line-in-os-x/#comment-478165</link>
		<dc:creator>James</dc:creator>
		<pubDate>Mon, 21 Jan 2013 09:08:27 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=32272#comment-478165</guid>
		<description>Change the behaviour in System Preferences. Find terminal-notifier listed in the Notifications pref pane, and set the alert style to Alerts, or Banners.</description>
		<content:encoded><![CDATA[<p>Change the behaviour in System Preferences. Find terminal-notifier listed in the Notifications pref pane, and set the alert style to Alerts, or Banners.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://osxdaily.com/2012/08/03/send-an-alert-to-notification-center-from-the-command-line-in-os-x/#comment-455893</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Sat, 24 Nov 2012 23:58:11 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=32272#comment-455893</guid>
		<description>Unless I missed it, this doesn&#039;t seem to have a way to make the notification stay on the screen, instead of sliding into the notification center after a couple of seconds.</description>
		<content:encoded><![CDATA[<p>Unless I missed it, this doesn&#8217;t seem to have a way to make the notification stay on the screen, instead of sliding into the notification center after a couple of seconds.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://osxdaily.com/2012/08/03/send-an-alert-to-notification-center-from-the-command-line-in-os-x/#comment-455883</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Sat, 24 Nov 2012 23:46:55 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=32272#comment-455883</guid>
		<description>Doing &quot;command &amp;&amp; terminal-notify&quot; will only display the notification if the command succeeds (i.e., returns 0).  If you want it to show regardless, use ; instead of &amp;&amp; (like &quot;command; terminal-notify&quot;).  Alternately, if you want to notify only when the command fails, use &#124;&#124; (like &quot;command &#124;&#124; terminal-notify&quot;).  If you want more advanced logic than that, I suggest you read up on how to do if-then clauses in bash scripting.</description>
		<content:encoded><![CDATA[<p>Doing &#8220;command &amp;&amp; terminal-notify&#8221; will only display the notification if the command succeeds (i.e., returns 0).  If you want it to show regardless, use ; instead of &amp;&amp; (like &#8220;command; terminal-notify&#8221;).  Alternately, if you want to notify only when the command fails, use || (like &#8220;command || terminal-notify&#8221;).  If you want more advanced logic than that, I suggest you read up on how to do if-then clauses in bash scripting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alain</title>
		<link>http://osxdaily.com/2012/08/03/send-an-alert-to-notification-center-from-the-command-line-in-os-x/#comment-428962</link>
		<dc:creator>alain</dc:creator>
		<pubDate>Fri, 21 Sep 2012 10:38:14 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=32272#comment-428962</guid>
		<description>Is there any way to get those notifications on all devices? Maybe sent the message to my icloud account?</description>
		<content:encoded><![CDATA[<p>Is there any way to get those notifications on all devices? Maybe sent the message to my icloud account?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will</title>
		<link>http://osxdaily.com/2012/08/03/send-an-alert-to-notification-center-from-the-command-line-in-os-x/#comment-417037</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Tue, 14 Aug 2012 18:21:37 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=32272#comment-417037</guid>
		<description>Click the little (x) icon in the Notification panel to remove alerts</description>
		<content:encoded><![CDATA[<p>Click the little (x) icon in the Notification panel to remove alerts</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tapeseries5</title>
		<link>http://osxdaily.com/2012/08/03/send-an-alert-to-notification-center-from-the-command-line-in-os-x/#comment-417015</link>
		<dc:creator>Tapeseries5</dc:creator>
		<pubDate>Tue, 14 Aug 2012 17:32:33 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=32272#comment-417015</guid>
		<description>How to remove it ??</description>
		<content:encoded><![CDATA[<p>How to remove it ??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William Scott</title>
		<link>http://osxdaily.com/2012/08/03/send-an-alert-to-notification-center-from-the-command-line-in-os-x/#comment-414171</link>
		<dc:creator>William Scott</dc:creator>
		<pubDate>Sun, 05 Aug 2012 21:50:20 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=32272#comment-414171</guid>
		<description>Growlnotify will allow you to do this with 10.7 or earlier (as well as 10.8).</description>
		<content:encoded><![CDATA[<p>Growlnotify will allow you to do this with 10.7 or earlier (as well as 10.8).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bt</title>
		<link>http://osxdaily.com/2012/08/03/send-an-alert-to-notification-center-from-the-command-line-in-os-x/#comment-414066</link>
		<dc:creator>bt</dc:creator>
		<pubDate>Sun, 05 Aug 2012 17:56:46 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=32272#comment-414066</guid>
		<description>Right, Notification Center is in OS X 10.8 or later</description>
		<content:encoded><![CDATA[<p>Right, Notification Center is in OS X 10.8 or later</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oliver montes</title>
		<link>http://osxdaily.com/2012/08/03/send-an-alert-to-notification-center-from-the-command-line-in-os-x/#comment-414059</link>
		<dc:creator>oliver montes</dc:creator>
		<pubDate>Sun, 05 Aug 2012 17:14:09 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=32272#comment-414059</guid>
		<description>terminal-notifier is only supported on Mac OS X 10.8, or higher.

:(</description>
		<content:encoded><![CDATA[<p>terminal-notifier is only supported on Mac OS X 10.8, or higher.</p>
<p> <img src='http://cdn.osxdaily.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William Scott</title>
		<link>http://osxdaily.com/2012/08/03/send-an-alert-to-notification-center-from-the-command-line-in-os-x/#comment-413610</link>
		<dc:creator>William Scott</dc:creator>
		<pubDate>Sat, 04 Aug 2012 04:56:28 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=32272#comment-413610</guid>
		<description>Here is one example:

Say I want to run some command that takes several minutes, so I want to do something else while it runs but receive notification when it is done.  I also hate the terminal bell sound, so I turned it off.  I can use this as follows:

In bash or zsh, I can define a function like this:

tnot () { &quot;$@&quot; &amp;&amp; terminal-notifier -message &quot;$( echo $@ ) returned $?&quot; -title &quot;Command $HISTCMD Completed&quot; &gt;/dev/null ; }

Now, I can issue

tnot sleep 12

It runs the sleep command (waits 12 seconds), and when it has finished, it posts the notification.

Now I need to figure out how to bind it to something like option-return, so I can invoke it without typing anything.</description>
		<content:encoded><![CDATA[<p>Here is one example:</p>
<p>Say I want to run some command that takes several minutes, so I want to do something else while it runs but receive notification when it is done.  I also hate the terminal bell sound, so I turned it off.  I can use this as follows:</p>
<p>In bash or zsh, I can define a function like this:</p>
<p>tnot () { &#8220;$@&#8221; &amp;&amp; terminal-notifier -message &#8220;$( echo $@ ) returned $?&#8221; -title &#8220;Command $HISTCMD Completed&#8221; &gt;/dev/null ; }</p>
<p>Now, I can issue</p>
<p>tnot sleep 12</p>
<p>It runs the sleep command (waits 12 seconds), and when it has finished, it posts the notification.</p>
<p>Now I need to figure out how to bind it to something like option-return, so I can invoke it without typing anything.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://osxdaily.com/2012/08/03/send-an-alert-to-notification-center-from-the-command-line-in-os-x/#comment-413559</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Sat, 04 Aug 2012 01:55:17 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=32272#comment-413559</guid>
		<description>The terminal command notification sounds like a great idea but can anyone explain how to make it work?</description>
		<content:encoded><![CDATA[<p>The terminal command notification sounds like a great idea but can anyone explain how to make it work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Napoleon Wils0n</title>
		<link>http://osxdaily.com/2012/08/03/send-an-alert-to-notification-center-from-the-command-line-in-os-x/#comment-413497</link>
		<dc:creator>Napoleon Wils0n</dc:creator>
		<pubDate>Fri, 03 Aug 2012 22:23:45 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=32272#comment-413497</guid>
		<description>You shouldnt use special characters like ! inside double quotes because of shell expansion

-bash: !: event not found</description>
		<content:encoded><![CDATA[<p>You shouldnt use special characters like ! inside double quotes because of shell expansion</p>
<p>-bash: !: event not found</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will</title>
		<link>http://osxdaily.com/2012/08/03/send-an-alert-to-notification-center-from-the-command-line-in-os-x/#comment-413416</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Fri, 03 Aug 2012 17:24:12 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=32272#comment-413416</guid>
		<description>Yes, it posts a desktop alert in addition to showing up in Notification Center. Updated with a screenshot demonstrating this.</description>
		<content:encoded><![CDATA[<p>Yes, it posts a desktop alert in addition to showing up in Notification Center. Updated with a screenshot demonstrating this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://osxdaily.com/2012/08/03/send-an-alert-to-notification-center-from-the-command-line-in-os-x/#comment-413412</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Fri, 03 Aug 2012 17:21:33 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=32272#comment-413412</guid>
		<description>Does this send a desktop notification as well, or does it only post to the Notification Center panel? Looks great will check it out later.</description>
		<content:encoded><![CDATA[<p>Does this send a desktop notification as well, or does it only post to the Notification Center panel? Looks great will check it out later.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced (User agent is rejected)
Database Caching 1/3 queries in 0.004 seconds using disk: basic
Object Caching 336/337 objects using disk: basic
Content Delivery Network via cdn.osxdaily.com

Served from: osxdaily.com @ 2013-05-26 00:58:26 -->