<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.11" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Boot Camp for Wizards, Part Three: Using Standard I/O from shells</title>
	<link>http://www.linux-mag.com/id/5103/</link>
	<description>Open Source, Open Standards</description>
	<pubDate>Sun, 07 Sep 2008 01:16:20 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.11</generator>

	<item>
		<title>by: djeepp</title>
		<link>http://www.linux-mag.com/id/5103/#comment-949</link>
		<pubDate>Sat, 29 Mar 2008 03:38:31 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/5103/#comment-949</guid>
					<description>Oops, I mean 2&#62;&#38;1.</description>
		<content:encoded><![CDATA[<p>Oops, I mean 2&gt;&amp;1.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: djeepp</title>
		<link>http://www.linux-mag.com/id/5103/#comment-948</link>
		<pubDate>Sat, 29 Mar 2008 03:37:05 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/5103/#comment-948</guid>
					<description>We put our daemons right inside the inittab (poor practice, I know) and I always wondered about that mysterious 2&#62;$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: allenhalsey</title>
		<link>http://www.linux-mag.com/id/5103/#comment-897</link>
		<pubDate>Thu, 13 Mar 2008 22:37:04 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/5103/#comment-897</guid>
					<description>Great article! Thanks!

@bros/Soren: I experience the same problem with my bash 2.05b.0.

The following does work and demonstrates the principle being described:

&lt;blockquote&gt;cat afile &#124; (ls afile; rm afile; ls afile; head -1)
&lt;/blockquote&gt;

However, the head command on my system causes STDIN to stop flowing; i.e.:

&lt;blockquote&gt;cat afile &#124; (head -1; head -1)
&lt;/blockquote&gt;

only returns 1 line:

&lt;blockquote&gt;daemon:x:1:1:Owner of many system processes:/usr/sbin:/bin/sh
&lt;/blockquote&gt;

A workaround is to replace each &lt;code&gt;'head -1'&lt;/code&gt; with 'read line; echo "$line"'

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: isabellf</title>
		<link>http://www.linux-mag.com/id/5103/#comment-871</link>
		<pubDate>Fri, 29 Feb 2008 03:04:56 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/5103/#comment-871</guid>
					<description>Whoever complained about the so called lack of wizardry in the first installment of the series : keep quiet now !

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: mustapha oldache</title>
		<link>http://www.linux-mag.com/id/5103/#comment-868</link>
		<pubDate>Wed, 27 Feb 2008 12:44:04 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/5103/#comment-868</guid>
					<description>Thank you, Jerry.
 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: lexfiend</title>
		<link>http://www.linux-mag.com/id/5103/#comment-862</link>
		<pubDate>Sat, 23 Feb 2008 09:35:13 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/5103/#comment-862</guid>
					<description>@bros/Soren:

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've corrected /etc/passed to /etc/passwd, of course).

On the off-chance that it's being run under a non-Bourne shell, as Corne pointed out, try prefixing your script with the line:

#!/bin/sh

If that doesn'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: Soren Harder</title>
		<link>http://www.linux-mag.com/id/5103/#comment-858</link>
		<pubDate>Thu, 21 Feb 2008 09:42:42 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/5103/#comment-858</guid>
					<description>Hi,

Thanks for a really great article. These are things I really need, and have not been able to learn anywhere else.

I have the same problem as 'bros' with GNU bash, version 3.00.16(1): the 'exec [from] afile' reads afile as a list of commands (and closes the terminal when finished).

[and again same problem as 'bros' the editor is not happy about the left-arrow "[from]" 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 &#8216;bros&#8217; the editor is not happy about the left-arrow &#8220;[from]&#8221; sign]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Soren Harder</title>
		<link>http://www.linux-mag.com/id/5103/#comment-857</link>
		<pubDate>Thu, 21 Feb 2008 09:40:45 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/5103/#comment-857</guid>
					<description>Hi,

Thanks for a really great article. These are things I really need, and have not been able to learn anywhere else.

I have the same problem as 'bros' with GNU bash, version 3.00.16(1): the '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: bros</title>
		<link>http://www.linux-mag.com/id/5103/#comment-848</link>
		<pubDate>Fri, 15 Feb 2008 11:45:10 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/5103/#comment-848</guid>
					<description>Hey Jerry 

the exec with afile as stdin trick doesn't work for me
it seems that exec it trying to execute the
lines of afile and fails (bash 3.2.25)...

just FYI :)

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: bros</title>
		<link>http://www.linux-mag.com/id/5103/#comment-847</link>
		<pubDate>Fri, 15 Feb 2008 11:42:53 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/5103/#comment-847</guid>
					<description>Hey Jerry 

the "exec </description>
		<content:encoded><![CDATA[<p>Hey Jerry </p>
<p>the &#8220;exec
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
