<?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: Announce When a Command Line Task is Completed in Mac OS X</title>
	<atom:link href="http://osxdaily.com/2012/05/08/announce-command-line-task-completion-mac-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://osxdaily.com/2012/05/08/announce-command-line-task-completion-mac-os-x/</link>
	<description>News, tips, software, reviews, and more for Mac OS X, iPhone, iPad</description>
	<lastBuildDate>Wed, 22 May 2013 19:52:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Send an Alert to Notification Center from the Command Line in OS X</title>
		<link>http://osxdaily.com/2012/05/08/announce-command-line-task-completion-mac-os-x/#comment-413410</link>
		<dc:creator>Send an Alert to Notification Center from the Command Line in OS X</dc:creator>
		<pubDate>Fri, 03 Aug 2012 17:13:51 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=29992#comment-413410</guid>
		<description>[...] This has a myriad of potentially valid uses, but one fantastic use-case is along the same veins of verbally announcing when a command has completed or sending a badge alert, but instead posting the notification to OS X Mountain Lion&#8217;s [...]</description>
		<content:encoded><![CDATA[<p>[...] This has a myriad of potentially valid uses, but one fantastic use-case is along the same veins of verbally announcing when a command has completed or sending a badge alert, but instead posting the notification to OS X Mountain Lion&#8217;s [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Send a Notification Badge to the Terminal Dock Icon When a Task is Finished</title>
		<link>http://osxdaily.com/2012/05/08/announce-command-line-task-completion-mac-os-x/#comment-407693</link>
		<dc:creator>Send a Notification Badge to the Terminal Dock Icon When a Task is Finished</dc:creator>
		<pubDate>Tue, 17 Jul 2012 17:04:47 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=29992#comment-407693</guid>
		<description>[...] long ago we showed you how to announce when a command line task was finished by using the &#8216;say&#8217; command, but because it speaks aloud it may be inappropriate to use [...]</description>
		<content:encoded><![CDATA[<p>[...] long ago we showed you how to announce when a command line task was finished by using the &#8216;say&#8217; command, but because it speaks aloud it may be inappropriate to use [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xofer</title>
		<link>http://osxdaily.com/2012/05/08/announce-command-line-task-completion-mac-os-x/#comment-389105</link>
		<dc:creator>xofer</dc:creator>
		<pubDate>Thu, 17 May 2012 19:16:54 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=29992#comment-389105</guid>
		<description>And, by the way &quot;&amp;&amp;&quot; is wrong in the article itself - this is logical AND, which means the the latter part is executed *only* if the first part exited with a zero exit status.

It would make much more sense to do:
python backup.py; say &quot;jobs done&quot;

Then the second command is executed no matter what the exit code of the first.</description>
		<content:encoded><![CDATA[<p>And, by the way &#8220;&amp;&amp;&#8221; is wrong in the article itself &#8211; this is logical AND, which means the the latter part is executed *only* if the first part exited with a zero exit status.</p>
<p>It would make much more sense to do:<br />
python backup.py; say &#8220;jobs done&#8221;</p>
<p>Then the second command is executed no matter what the exit code of the first.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xofer</title>
		<link>http://osxdaily.com/2012/05/08/announce-command-line-task-completion-mac-os-x/#comment-389104</link>
		<dc:creator>xofer</dc:creator>
		<pubDate>Thu, 17 May 2012 19:13:01 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=29992#comment-389104</guid>
		<description>You don&#039;t need a function for that.

You can do:

sometask.sh &amp;&amp; say -v Alex “Task Ok” &#124;&#124; say -v Alex “Task Error”</description>
		<content:encoded><![CDATA[<p>You don&#8217;t need a function for that.</p>
<p>You can do:</p>
<p>sometask.sh &amp;&amp; say -v Alex “Task Ok” || say -v Alex “Task Error”</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://osxdaily.com/2012/05/08/announce-command-line-task-completion-mac-os-x/#comment-389076</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Thu, 17 May 2012 18:04:59 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=29992#comment-389076</guid>
		<description>Agreed, growl is a superior solution for anyone in an office, and you can use -H to specify alternate hosts to receive the notification.</description>
		<content:encoded><![CDATA[<p>Agreed, growl is a superior solution for anyone in an office, and you can use -H to specify alternate hosts to receive the notification.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Make Mac OS X Speak (or Sing) the Output of Any Command Line Task</title>
		<link>http://osxdaily.com/2012/05/08/announce-command-line-task-completion-mac-os-x/#comment-387499</link>
		<dc:creator>Make Mac OS X Speak (or Sing) the Output of Any Command Line Task</dc:creator>
		<pubDate>Fri, 11 May 2012 18:26:48 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=29992#comment-387499</guid>
		<description>[...] the lines of vocally announcing task completion within the command line, you can also have Mac OS X speak the output of any executed [...]</description>
		<content:encoded><![CDATA[<p>[...] the lines of vocally announcing task completion within the command line, you can also have Mac OS X speak the output of any executed [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Zerafiall</title>
		<link>http://osxdaily.com/2012/05/08/announce-command-line-task-completion-mac-os-x/#comment-386760</link>
		<dc:creator>The Zerafiall</dc:creator>
		<pubDate>Wed, 09 May 2012 15:17:48 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=29992#comment-386760</guid>
		<description>Haha... I read the tweet and clicked the link and was thinking &quot;Oh... maybe it&#039;s some fancy way of invoking growl or a UIAlertVeiw. Wait... wouldn&#039;t be easier to just add &amp;&amp; say -v Task Done to the end of you code&quot; only to come over here and see that&#039;s exactly what you did XD</description>
		<content:encoded><![CDATA[<p>Haha&#8230; I read the tweet and clicked the link and was thinking &#8220;Oh&#8230; maybe it&#8217;s some fancy way of invoking growl or a UIAlertVeiw. Wait&#8230; wouldn&#8217;t be easier to just add &amp;&amp; say -v Task Done to the end of you code&#8221; only to come over here and see that&#8217;s exactly what you did XD</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rev_1318</title>
		<link>http://osxdaily.com/2012/05/08/announce-command-line-task-completion-mac-os-x/#comment-386758</link>
		<dc:creator>rev_1318</dc:creator>
		<pubDate>Wed, 09 May 2012 15:02:41 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=29992#comment-386758</guid>
		<description>the only drawback for using &#039;&amp;&amp;&#039; is that you won&#039;t get a notification if the command fails!
Why not simply use &#039;;&#039; as command separator?

compare:

cd IDontExist &amp;&amp; say -v Alex Oops

with:

cd IDontExist; say -v Alex Oops</description>
		<content:encoded><![CDATA[<p>the only drawback for using &#8216;&amp;&amp;&#8217; is that you won&#8217;t get a notification if the command fails!<br />
Why not simply use &#8216;;&#8217; as command separator?</p>
<p>compare:</p>
<p>cd IDontExist &amp;&amp; say -v Alex Oops</p>
<p>with:</p>
<p>cd IDontExist; say -v Alex Oops</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vdiv</title>
		<link>http://osxdaily.com/2012/05/08/announce-command-line-task-completion-mac-os-x/#comment-386733</link>
		<dc:creator>vdiv</dc:creator>
		<pubDate>Wed, 09 May 2012 13:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=29992#comment-386733</guid>
		<description>Excellent!  Alex even gets the intonation right.  Put a question mark at the end and hear for yourself.</description>
		<content:encoded><![CDATA[<p>Excellent!  Alex even gets the intonation right.  Put a question mark at the end and hear for yourself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Have Mac Terminal Audibly Announce The Completion Of A Command [Tip]</title>
		<link>http://osxdaily.com/2012/05/08/announce-command-line-task-completion-mac-os-x/#comment-386724</link>
		<dc:creator>Have Mac Terminal Audibly Announce The Completion Of A Command [Tip]</dc:creator>
		<pubDate>Wed, 09 May 2012 12:39:54 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=29992#comment-386724</guid>
		<description>[...] [via OS X Daily] [...]</description>
		<content:encoded><![CDATA[<p>[...] [via OS X Daily] [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Foobar</title>
		<link>http://osxdaily.com/2012/05/08/announce-command-line-task-completion-mac-os-x/#comment-386713</link>
		<dc:creator>Foobar</dc:creator>
		<pubDate>Wed, 09 May 2012 11:30:53 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=29992#comment-386713</guid>
		<description>Nope, not for the finder. For the terminal, it&#039;d be 
$cp foo bar &amp;&amp; say &quot;file transfer complete&quot;</description>
		<content:encoded><![CDATA[<p>Nope, not for the finder. For the terminal, it&#8217;d be<br />
$cp foo bar &amp;&amp; say &#8220;file transfer complete&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://osxdaily.com/2012/05/08/announce-command-line-task-completion-mac-os-x/#comment-386707</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Wed, 09 May 2012 10:58:12 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=29992#comment-386707</guid>
		<description>so...is it possible to make a notification when file transfer from finder is done? How to do it?</description>
		<content:encoded><![CDATA[<p>so&#8230;is it possible to make a notification when file transfer from finder is done? How to do it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg P</title>
		<link>http://osxdaily.com/2012/05/08/announce-command-line-task-completion-mac-os-x/#comment-386671</link>
		<dc:creator>Greg P</dc:creator>
		<pubDate>Wed, 09 May 2012 06:45:41 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=29992#comment-386671</guid>
		<description>You can also pipe to say

I tried it with uptime as follows

uptime &#124; say

The Mac told me the time, uptime, load average etc

Very cool little function

Enjoy!</description>
		<content:encoded><![CDATA[<p>You can also pipe to say</p>
<p>I tried it with uptime as follows</p>
<p>uptime | say</p>
<p>The Mac told me the time, uptime, load average etc</p>
<p>Very cool little function</p>
<p>Enjoy!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Theo Vosse</title>
		<link>http://osxdaily.com/2012/05/08/announce-command-line-task-completion-mac-os-x/#comment-386669</link>
		<dc:creator>Theo Vosse</dc:creator>
		<pubDate>Wed, 09 May 2012 06:42:57 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=29992#comment-386669</guid>
		<description>You could also try &quot;growlnotify&quot;, e.g. like this
$ growlnotify -s -m &quot;Task Done&quot;</description>
		<content:encoded><![CDATA[<p>You could also try &#8220;growlnotify&#8221;, e.g. like this<br />
$ growlnotify -s -m &#8220;Task Done&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tarcisio</title>
		<link>http://osxdaily.com/2012/05/08/announce-command-line-task-completion-mac-os-x/#comment-386559</link>
		<dc:creator>Tarcisio</dc:creator>
		<pubDate>Tue, 08 May 2012 23:07:08 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=29992#comment-386559</guid>
		<description>My function to say the task status

function sayTaskStatusUsingExitCode() {
  if [ &quot;$?&quot; == &quot;0&quot; ]
  then
    say -v Alex &quot;Task Ok&quot;
  else
    say -v Alex &quot;Task Error&quot;
  fi
}</description>
		<content:encoded><![CDATA[<p>My function to say the task status</p>
<p>function sayTaskStatusUsingExitCode() {<br />
  if [ "$?" == "0" ]<br />
  then<br />
    say -v Alex &#8220;Task Ok&#8221;<br />
  else<br />
    say -v Alex &#8220;Task Error&#8221;<br />
  fi<br />
}</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.001 seconds using disk: basic
Object Caching 343/344 objects using disk: basic
Content Delivery Network via cdn.osxdaily.com

Served from: osxdaily.com @ 2013-05-23 07:11:26 -->