<?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: Wizard Boot Camp, Part Three: Using Standard I/O from Shells</title>
	<atom:link href="http://www.linux-mag.com/id/5103/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linux-mag.com/id/5103/</link>
	<description>Open Source, Open Standards</description>
	<lastBuildDate>Fri, 10 Feb 2012 08:31:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: dbolivar</title>
		<link>http://www.linux-mag.com/id/5103/#comment-5113</link>
		<dc:creator>dbolivar</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.linux-mag.com/id/5103/#comment-5113</guid>
		<description>Great article, very useful information not only for shell scripts, but also to deeply understand the standard I/O. Thanks.</description>
		<content:encoded><![CDATA[<p>Great article, very useful information not only for shell scripts, but also to deeply understand the standard I/O. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: santoshbr4</title>
		<link>http://www.linux-mag.com/id/5103/#comment-5114</link>
		<dc:creator>santoshbr4</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.linux-mag.com/id/5103/#comment-5114</guid>
		<description>Highly informative. A worthy effort. Thank you for sharing your knowledge.</description>
		<content:encoded><![CDATA[<p>Highly informative. A worthy effort. Thank you for sharing your knowledge.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: beerse</title>
		<link>http://www.linux-mag.com/id/5103/#comment-5115</link>
		<dc:creator>beerse</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.linux-mag.com/id/5103/#comment-5115</guid>
		<description>Nice composition. Some things things to add: The above is (as far as I can see) based on bourne-shell and deriviants like ksh, bash and such. The c-shell (and deriviants like tcsh) have a different aproach on how stdio is handled. My experience tells that I prefer the bourne-shell in scripting and the c-shell on the commandline.&lt;br /&gt;
&lt;br /&gt;
There is a page on &#039;useless use of cat&#039; (just google for that). As far as I remember is it using stdio.</description>
		<content:encoded><![CDATA[<p>Nice composition. Some things things to add: The above is (as far as I can see) based on bourne-shell and deriviants like ksh, bash and such. The c-shell (and deriviants like tcsh) have a different aproach on how stdio is handled. My experience tells that I prefer the bourne-shell in scripting and the c-shell on the commandline.</p>
<p>There is a page on &#8216;useless use of cat&#8217; (just google for that). As far as I remember is it using stdio.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dford</title>
		<link>http://www.linux-mag.com/id/5103/#comment-5116</link>
		<dc:creator>dford</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.linux-mag.com/id/5103/#comment-5116</guid>
		<description>A &#039;definitely not to be missed&#039; series - Thank you&lt;br /&gt;
- David</description>
		<content:encoded><![CDATA[<p>A &#8216;definitely not to be missed&#8217; series &#8211; Thank you<br />
- David</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bros</title>
		<link>http://www.linux-mag.com/id/5103/#comment-5117</link>
		<dc:creator>bros</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.linux-mag.com/id/5103/#comment-5117</guid>
		<description>Hey Jerry &lt;br /&gt;
&lt;br /&gt;
the &quot;exec </description>
		<content:encoded><![CDATA[<p>Hey Jerry </p>
<p>the &#8220;exec</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bros</title>
		<link>http://www.linux-mag.com/id/5103/#comment-5118</link>
		<dc:creator>bros</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.linux-mag.com/id/5103/#comment-5118</guid>
		<description>Hey Jerry &lt;br /&gt;
&lt;br /&gt;
the exec with afile as stdin trick doesn&#039;t work for me&lt;br /&gt;
it seems that exec it trying to execute the&lt;br /&gt;
lines of afile and fails (bash 3.2.25)...&lt;br /&gt;
&lt;br /&gt;
just FYI :)&lt;br /&gt;
&lt;br /&gt;
anyways, great article...thanks.</description>
		<content:encoded><![CDATA[<p>Hey Jerry </p>
<p>the exec with afile as stdin trick doesn&#8217;t work for me<br />
it seems that exec it trying to execute the<br />
lines of afile and fails (bash 3.2.25)&#8230;</p>
<p>just FYI :)</p>
<p>anyways, great article&#8230;thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sharder</title>
		<link>http://www.linux-mag.com/id/5103/#comment-5119</link>
		<dc:creator>sharder</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.linux-mag.com/id/5103/#comment-5119</guid>
		<description>Hi,&lt;br /&gt;
&lt;br /&gt;
Thanks for a really great article. These are things I really need, and have not been able to learn anywhere else.&lt;br /&gt;
&lt;br /&gt;
I have the same problem as &#039;bros&#039; with GNU bash, version 3.00.16(1): the &#039;exec </description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for a really great article. These are things I really need, and have not been able to learn anywhere else.</p>
<p>I have the same problem as &#8216;bros&#8217; with GNU bash, version 3.00.16(1): the &#8216;exec</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sharder</title>
		<link>http://www.linux-mag.com/id/5103/#comment-5120</link>
		<dc:creator>sharder</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.linux-mag.com/id/5103/#comment-5120</guid>
		<description>Hi,&lt;br /&gt;
&lt;br /&gt;
Thanks for a really great article. These are things I really need, and have not been able to learn anywhere else.&lt;br /&gt;
&lt;br /&gt;
I have the same problem as &#039;bros&#039; with GNU bash, version 3.00.16(1): the &#039;exec [from] afile&#039; reads afile as a list of commands (and closes the terminal when finished).&lt;br /&gt;
&lt;br /&gt;
[and again same problem as &#039;bros&#039; the editor is not happy about the left-arrow &quot;[from]&quot; sign]</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for a really great article. These are things I really need, and have not been able to learn anywhere else.</p>
<p>I have the same problem as &#8216;bros&#8217; with GNU bash, version 3.00.16(1): the &#8216;exec [from] afile&#8217; reads afile as a list of commands (and closes the terminal when finished).</p>
<p>[and again same problem as 'bros' the editor is not happy about the left-arrow "[from]&#8221; sign]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lexfiend</title>
		<link>http://www.linux-mag.com/id/5103/#comment-5121</link>
		<dc:creator>lexfiend</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.linux-mag.com/id/5103/#comment-5121</guid>
		<description>@bros/Soren:&lt;br /&gt;
&lt;br /&gt;
I can confirm that the exec redirection script that you both have problems with works exactly as advertised under bash 3.2.25 and 2.05b (well, once you&#039;ve corrected /etc/passed to /etc/passwd, of course).&lt;br /&gt;
&lt;br /&gt;
On the off-chance that it&#039;s being run under a non-Bourne shell, as Corne pointed out, try prefixing your script with the line:&lt;br /&gt;
&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
If that doesn&#039;t work, post the actual error message you see.</description>
		<content:encoded><![CDATA[<p>@bros/Soren:</p>
<p>I can confirm that the exec redirection script that you both have problems with works exactly as advertised under bash 3.2.25 and 2.05b (well, once you&#8217;ve corrected /etc/passed to /etc/passwd, of course).</p>
<p>On the off-chance that it&#8217;s being run under a non-Bourne shell, as Corne pointed out, try prefixing your script with the line:</p>
<p>#!/bin/sh</p>
<p>If that doesn&#8217;t work, post the actual error message you see.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oldache</title>
		<link>http://www.linux-mag.com/id/5103/#comment-5122</link>
		<dc:creator>oldache</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.linux-mag.com/id/5103/#comment-5122</guid>
		<description>Thank you, Jerry.&lt;br /&gt;
 When we review the command mode, we always understand something new, like in Literature when we read a good book once more.</description>
		<content:encoded><![CDATA[<p>Thank you, Jerry.<br />
 When we review the command mode, we always understand something new, like in Literature when we read a good book once more.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: isabellf</title>
		<link>http://www.linux-mag.com/id/5103/#comment-5123</link>
		<dc:creator>isabellf</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.linux-mag.com/id/5103/#comment-5123</guid>
		<description>Whoever complained about the so called lack of wizardry in the first installment of the series : keep quiet now !&lt;br /&gt;
&lt;br /&gt;
Good work.</description>
		<content:encoded><![CDATA[<p>Whoever complained about the so called lack of wizardry in the first installment of the series : keep quiet now !</p>
<p>Good work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: allenhalsey</title>
		<link>http://www.linux-mag.com/id/5103/#comment-5124</link>
		<dc:creator>allenhalsey</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.linux-mag.com/id/5103/#comment-5124</guid>
		<description>Great article! Thanks!&lt;br /&gt;
&lt;br /&gt;
@bros/Soren: I experience the same problem with my bash 2.05b.0.&lt;br /&gt;
&lt;br /&gt;
The following does work and demonstrates the principle being described:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;cat afile &#124; (ls afile; rm afile; ls afile; head -1)&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
However, the head command on my system causes STDIN to stop flowing; i.e.:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;cat afile &#124; (head -1; head -1)&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
only returns 1 line:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;daemon:x:1:1:Owner of many system processes:/usr/sbin:/bin/sh&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
A workaround is to replace each &lt;code&gt;&#039;head -1&#039;&lt;/code&gt; with &#039;read line; echo &quot;$line&quot;&#039;&lt;br /&gt;
&lt;br /&gt;
Allen</description>
		<content:encoded><![CDATA[<p>Great article! Thanks!</p>
<p>@bros/Soren: I experience the same problem with my bash 2.05b.0.</p>
<p>The following does work and demonstrates the principle being described:</p>
<blockquote><p>cat afile | (ls afile; rm afile; ls afile; head -1)
</p></blockquote>
<p>However, the head command on my system causes STDIN to stop flowing; i.e.:</p>
<blockquote><p>cat afile | (head -1; head -1)
</p></blockquote>
<p>only returns 1 line:</p>
<blockquote><p>daemon:x:1:1:Owner of many system processes:/usr/sbin:/bin/sh
</p></blockquote>
<p>A workaround is to replace each <code>'head -1'</code> with &#8216;read line; echo &#8220;$line&#8221;&#8216;</p>
<p>Allen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: djeepp</title>
		<link>http://www.linux-mag.com/id/5103/#comment-5125</link>
		<dc:creator>djeepp</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.linux-mag.com/id/5103/#comment-5125</guid>
		<description>We put our daemons right inside the inittab (poor practice, I know) and I always wondered about that mysterious 2&gt;$1 on all of them. This really clears it up.</description>
		<content:encoded><![CDATA[<p>We put our daemons right inside the inittab (poor practice, I know) and I always wondered about that mysterious 2&gt;$1 on all of them. This really clears it up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: djeepp</title>
		<link>http://www.linux-mag.com/id/5103/#comment-5126</link>
		<dc:creator>djeepp</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.linux-mag.com/id/5103/#comment-5126</guid>
		<description>Oops, I mean 2&gt;&amp;1.</description>
		<content:encoded><![CDATA[<p>Oops, I mean 2&gt;&amp;1.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

