<?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: Calling the Command Line from Cocoa</title>
	<atom:link href="http://vgable.com/blog/2008/03/05/calling-the-command-line-from-cocoa/feed/" rel="self" type="application/rss+xml" />
	<link>http://vgable.com/blog/2008/03/05/calling-the-command-line-from-cocoa/</link>
	<description>my weblog.</description>
	<lastBuildDate>Thu, 17 May 2012 17:13:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Alanna Mcclenny</title>
		<link>http://vgable.com/blog/2008/03/05/calling-the-command-line-from-cocoa/comment-page-1/#comment-1381</link>
		<dc:creator>Alanna Mcclenny</dc:creator>
		<pubDate>Sat, 21 Apr 2012 16:52:43 +0000</pubDate>
		<guid isPermaLink="false">http://vgable.com/blog/2008/03/05/calling-the-command-line-from-cocoa/#comment-1381</guid>
		<description>I do not even know how I stopped up right here, but I believed this put up was good. I don&#039;t understand who you might be however certainly you&#039;re going to a well-known blogger in the event you are not already ;) Cheers!</description>
		<content:encoded><![CDATA[<p>I do not even know how I stopped up right here, but I believed this put up was good. I don&#8217;t understand who you might be however certainly you&#8217;re going to a well-known blogger in the event you are not already ;) Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://vgable.com/blog/2008/03/05/calling-the-command-line-from-cocoa/comment-page-1/#comment-1363</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 07 Mar 2012 09:47:38 +0000</pubDate>
		<guid isPermaLink="false">http://vgable.com/blog/2008/03/05/calling-the-command-line-from-cocoa/#comment-1363</guid>
		<description>Your ShellTask class has made a project I&#039;m doing so much simpler and I thank you greatly for it.  My application is using a CLI API for a 3rd party product and thus is making quick CLI calls back and forth in rapid succession.  I needed a good way to do synchronous calls much like I would do in a shell script or perl inside of a loop and your class works perfectly for my needs.  I know it has been 5 years since you wrote it, but it is still very useful.</description>
		<content:encoded><![CDATA[<p>Your ShellTask class has made a project I&#8217;m doing so much simpler and I thank you greatly for it.  My application is using a CLI API for a 3rd party product and thus is making quick CLI calls back and forth in rapid succession.  I needed a good way to do synchronous calls much like I would do in a shell script or perl inside of a loop and your class works perfectly for my needs.  I know it has been 5 years since you wrote it, but it is still very useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fioricet</title>
		<link>http://vgable.com/blog/2008/03/05/calling-the-command-line-from-cocoa/comment-page-1/#comment-1353</link>
		<dc:creator>fioricet</dc:creator>
		<pubDate>Tue, 07 Feb 2012 04:21:43 +0000</pubDate>
		<guid isPermaLink="false">http://vgable.com/blog/2008/03/05/calling-the-command-line-from-cocoa/#comment-1353</guid>
		<description>I  believe  other website owners  should take this  site as an  model, very clean and  fantastic  user friendly   design and style .</description>
		<content:encoded><![CDATA[<p>I  believe  other website owners  should take this  site as an  model, very clean and  fantastic  user friendly   design and style .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: at&#38;t outlook settings</title>
		<link>http://vgable.com/blog/2008/03/05/calling-the-command-line-from-cocoa/comment-page-1/#comment-1325</link>
		<dc:creator>at&#38;t outlook settings</dc:creator>
		<pubDate>Thu, 24 Nov 2011 03:30:05 +0000</pubDate>
		<guid isPermaLink="false">http://vgable.com/blog/2008/03/05/calling-the-command-line-from-cocoa/#comment-1325</guid>
		<description>great post save up the great work.</description>
		<content:encoded><![CDATA[<p>great post save up the great work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eminem Quotes</title>
		<link>http://vgable.com/blog/2008/03/05/calling-the-command-line-from-cocoa/comment-page-1/#comment-1306</link>
		<dc:creator>Eminem Quotes</dc:creator>
		<pubDate>Sat, 20 Aug 2011 01:16:05 +0000</pubDate>
		<guid isPermaLink="false">http://vgable.com/blog/2008/03/05/calling-the-command-line-from-cocoa/#comment-1306</guid>
		<description>Great post! I&#039;ve also noticed a huge craze in Facebook quotes, there were a few sites that would get millions of likes just on a single quote.</description>
		<content:encoded><![CDATA[<p>Great post! I&#8217;ve also noticed a huge craze in Facebook quotes, there were a few sites that would get millions of likes just on a single quote.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Akers</title>
		<link>http://vgable.com/blog/2008/03/05/calling-the-command-line-from-cocoa/comment-page-1/#comment-481</link>
		<dc:creator>Alex Akers</dc:creator>
		<pubDate>Sun, 15 Feb 2009 18:29:09 +0000</pubDate>
		<guid isPermaLink="false">http://vgable.com/blog/2008/03/05/calling-the-command-line-from-cocoa/#comment-481</guid>
		<description>Used to get the primary mac address of the computer in order to run an mathematical permutation to get a unique &quot;computer code&quot;</description>
		<content:encoded><![CDATA[<p>Used to get the primary mac address of the computer in order to run an mathematical permutation to get a unique &#8220;computer code&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xcode newbie</title>
		<link>http://vgable.com/blog/2008/03/05/calling-the-command-line-from-cocoa/comment-page-1/#comment-441</link>
		<dc:creator>Xcode newbie</dc:creator>
		<pubDate>Tue, 20 Jan 2009 15:11:34 +0000</pubDate>
		<guid isPermaLink="false">http://vgable.com/blog/2008/03/05/calling-the-command-line-from-cocoa/#comment-441</guid>
		<description>Thanks.  This is getting off topic but I&#039;d like to run some sqlite commands.  After executing folder change commands in the .sh file, these commands execute:

sqlite3 myDB.sqlite
.import dbArea.txt Area

When I run the .sh file from Terminal, I&#039;m at an sqlite prompt.  The import command doesn&#039;t execute.  Any ideas what&#039;s going on?</description>
		<content:encoded><![CDATA[<p>Thanks.  This is getting off topic but I&#8217;d like to run some sqlite commands.  After executing folder change commands in the .sh file, these commands execute:</p>
<p>sqlite3 myDB.sqlite<br />
.import dbArea.txt Area</p>
<p>When I run the .sh file from Terminal, I&#8217;m at an sqlite prompt.  The import command doesn&#8217;t execute.  Any ideas what&#8217;s going on?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vincent Gable</title>
		<link>http://vgable.com/blog/2008/03/05/calling-the-command-line-from-cocoa/comment-page-1/#comment-438</link>
		<dc:creator>Vincent Gable</dc:creator>
		<pubDate>Tue, 20 Jan 2009 00:33:45 +0000</pubDate>
		<guid isPermaLink="false">http://vgable.com/blog/2008/03/05/calling-the-command-line-from-cocoa/#comment-438</guid>
		<description>What I would suggest doing is putting those dependent shell commands together in their own shell script, and then executing the shell script.
Once you have added the script, MyScript.sh, to your Xcode project, you can have the shell run it like:

NSString *pathToMyScript = [[NSBundle mainBundle] pathForResource:@&quot;MyScript&quot; ofType:@&quot;sh&quot;];
[[NSTask launchedTaskWithLaunchPath:@&quot;/bin/sh&quot; arguments:[NSArray arrayWithObject:pathToMyScript]] waitUntilExit];</description>
		<content:encoded><![CDATA[<p>What I would suggest doing is putting those dependent shell commands together in their own shell script, and then executing the shell script.<br />
Once you have added the script, MyScript.sh, to your Xcode project, you can have the shell run it like:</p>
<p>NSString *pathToMyScript = [[NSBundle mainBundle] pathForResource:@&#8221;MyScript&#8221; ofType:@&#8221;sh&#8221;];<br />
[[NSTask launchedTaskWithLaunchPath:@"/bin/sh" arguments:[NSArray arrayWithObject:pathToMyScript]] waitUntilExit];</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xcode newbie</title>
		<link>http://vgable.com/blog/2008/03/05/calling-the-command-line-from-cocoa/comment-page-1/#comment-436</link>
		<dc:creator>Xcode newbie</dc:creator>
		<pubDate>Mon, 19 Jan 2009 14:47:41 +0000</pubDate>
		<guid isPermaLink="false">http://vgable.com/blog/2008/03/05/calling-the-command-line-from-cocoa/#comment-436</guid>
		<description>Thanks.  This is great!  Is there a way to execute several commands within the same Terminal session?  I&#039;m calling executeShellCommandSynchronously  multiple times to traverse folders and and retreive contents of a file:

cd /
cd Users/theuser/Thefolder
vi somefile.txt

The problem is that each command executes in its own Terminal session.  So the second command gives a folder not found because I&#039;m still in the build/debug folder.   Any suggestions?  Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks.  This is great!  Is there a way to execute several commands within the same Terminal session?  I&#8217;m calling executeShellCommandSynchronously  multiple times to traverse folders and and retreive contents of a file:</p>
<p>cd /<br />
cd Users/theuser/Thefolder<br />
vi somefile.txt</p>
<p>The problem is that each command executes in its own Terminal session.  So the second command gives a folder not found because I&#8217;m still in the build/debug folder.   Any suggestions?  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jack Repenning</title>
		<link>http://vgable.com/blog/2008/03/05/calling-the-command-line-from-cocoa/comment-page-1/#comment-213</link>
		<dc:creator>Jack Repenning</dc:creator>
		<pubDate>Thu, 13 Nov 2008 11:45:20 +0000</pubDate>
		<guid isPermaLink="false">http://vgable.com/blog/2008/03/05/calling-the-command-line-from-cocoa/#comment-213</guid>
		<description>Thanks! Your ShellTask class was just what I needed.</description>
		<content:encoded><![CDATA[<p>Thanks! Your ShellTask class was just what I needed.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

