<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=2852&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / limit on number of pipes after long-running command? [SOLVED]]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=2852</link>
		<description><![CDATA[The most recent posts in limit on number of pipes after long-running command? [SOLVED].]]></description>
		<lastBuildDate>Thu, 16 May 2019 16:11:06 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: limit on number of pipes after long-running command? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=16097#p16097</link>
			<description><![CDATA[<p>It was a buffering issue. I found this helpful thread:<br /><a href="https://unix.stackexchange.com/questions/25372/turn-off-buffering-in-pipe" rel="nofollow">https://unix.stackexchange.com/question … ng-in-pipe</a></p><p>I can confirm that either of these pipelines work as expected:</p><div class="codebox"><pre><code>xinput test 9 | stdbuf -o0 grep release | awk &#039;{print $3}&#039;</code></pre></div><div class="codebox"><pre><code>xinput test 9 | unbuffer -p grep release | awk &#039;{print $3}&#039;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Thu, 16 May 2019 16:11:06 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=16097#p16097</guid>
		</item>
		<item>
			<title><![CDATA[Re: limit on number of pipes after long-running command? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=16094#p16094</link>
			<description><![CDATA[<p>For example, here is what I get if I type <em>devuan</em> after the command:</p><div class="codebox"><pre><code>$ xinput test 9 | awk &#039;/press/ {print $3}&#039;
40
26
55
30
38
57</code></pre></div><p>Why does the following produce no output when I type <em>devuan</em>, even though there is an <em>n</em> in there?</p><div class="codebox"><pre><code>$ xinput test 9 | awk &#039;/press/ {print $3}&#039; | grep 57</code></pre></div><p>That&#039;s what I&#039;m trying to understand: Why is there no output at all when I use a second pipe, even when output is expected? Is it a buffering issue?</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Thu, 16 May 2019 15:47:01 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=16094#p16094</guid>
		</item>
		<item>
			<title><![CDATA[Re: limit on number of pipes after long-running command? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=16093#p16093</link>
			<description><![CDATA[<p>That works, of course. But if I add a pipe after that, again: No output even when output is expected.</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Thu, 16 May 2019 15:42:28 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=16093#p16093</guid>
		</item>
		<item>
			<title><![CDATA[Re: limit on number of pipes after long-running command? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=16092#p16092</link>
			<description><![CDATA[<p>Try</p><div class="codebox"><pre><code>xinput test 9 | awk &#039;/press/{print $3}&#039;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Thu, 16 May 2019 15:41:27 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=16092#p16092</guid>
		</item>
		<item>
			<title><![CDATA[limit on number of pipes after long-running command? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=16091#p16091</link>
			<description><![CDATA[<p>I&#039;m trying to create a minimal, crude keylogger for X using only a shell script. I was quickly stumped: Why do these two commands entered in a terminal emulator produce output when I press some keys on my keyboard:</p><div class="codebox"><pre><code>$ xinput test 9 | grep press</code></pre></div><div class="codebox"><pre><code>$ xinput test 9 | awk &#039;{print $3}&#039;</code></pre></div><p>...but this command produces no output:</p><div class="codebox"><pre><code>$ xinput test 9 | grep press | awk &#039;{print $3}&#039;</code></pre></div><p>?</p><p>It seems after the first command I can use only one pipe--if I add a second pipe, I get no output even when output is expected. What gives?</p><p>(BTW, <span class="bbc">9</span> is the id of my keyboard, which I found by running <span class="bbc">xinput list</span>. My shell is bash version 4.4.12)</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Thu, 16 May 2019 15:39:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=16091#p16091</guid>
		</item>
	</channel>
</rss>
