<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 19, 2016 at 4:56 PM, Tomáš Golembiovský <span dir="ltr">&lt;<a href="mailto:tgolembi@redhat.com" target="_blank">tgolembi@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, 14 Jul 2016 17:25:28 +0300<br>
Nir Soffer &lt;<a href="mailto:nsoffer@redhat.com">nsoffer@redhat.com</a>&gt; wrote:<br>
<br>
&gt; After <a href="https://gerrit.ovirt.org/#/c/46733/" rel="noreferrer" target="_blank">https://gerrit.ovirt.org/#/c/46733/</a> you should be able to create<br>
&gt; the pipeline in python like this:<br>
&gt;<br>
&gt;     v2v = Popen([&quot;virt-v2v&quot;, ...], stdout=PIPE, stderr=STDOUT)<br>
&gt;     tee = Popen([&quot;tee&quot;, &quot;-a&quot;, logfile], stdin=v2v.stdout, stdout=PIPE,<br>
&gt; stderr=PIPE)<br>
&gt;<br>
&gt; Now we can read output from tee.stdout, and when tee is finished, we can wait<br>
&gt; for v2v to get the exit code.<br>
&gt;<br>
&gt; Since all output would go to tee stdout and stderr may only contain tee usage<br>
&gt; errors, we don&#39;t need to use AsyncProc, making this code python 3 compatible.<br>
<br>
<br>
</span>Yes, this may actualy work. And do we plan to adopt the cpopen 1.4.1, where<br>
this is fixed, in VDSM?<br></blockquote><div> </div><div>cpopen 1.5.1 - and yes but not in ovirt-4.0</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Tomáš Golembiovský &lt;<a href="mailto:tgolembi@redhat.com">tgolembi@redhat.com</a>&gt;<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/devel</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span style="font-size:12.8px"><b>Yaniv Bronhaim.</b></span><br></div></div></div></div></div>
</div></div>