<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Indeed! When using 2>&1 the filtered output comes out as errors (black bkg and red text). Is there anyway to correct<span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;"> that? </span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
<hr tabindex="-1" style="font-family: inherit; font-size: inherit; font-style: inherit; font-variant-ligatures: inherit; font-variant-caps: inherit; font-weight: inherit; display: inline-block; width: 98%;">
<br>
</div>
<div>
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size: 11pt;" data-ogsc=""><b>De:</b> Pd-dev <pd-dev-bounces@lists.iem.at> em nome de Christof Ressi <info@christofressi.com><br>
<b>Enviado:</b> domingo, 24 de maio de 2020 18:30<br>
<b>Para:</b> pd-dev <pd-dev@lists.iem.at><br>
<b>Assunto:</b> Re: [PD-dev] Filter PD debug output in Powershell</font>
<div> </div>
</div>
<div>
<p style="margin-top: 0px; margin-bottom: 0px;">Hi,</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">your problem is that Pd writes the messages to stderr, but the pipe operator reads from stdout. You can redirect stderr to stdout with "2>&1" before filtering the output (should also work in modern Powershell).<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">Christof<br>
</p>
<br>
<div class="x_moz-cite-prefix">On 24.05.2020 22:50, Henri Augusto Bisognini wrote:<br>
</div>
<blockquote type="cite">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Hey list! Hope you're all well!<br>
<br>
I'm debugging communication between the core and the gui with "-d 3"  and i want to filter out all those mouse "motion" and "coords" events in PowerShell.<br>
<br>
I'm trying</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<b>./pd.com -d 3  | ? {$_ -notlike "*motion*"}</b><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
But it doesn't work. Interestingly this one does work:<br>
<br>
<b>"abc", ".x695480 motion 208.0 124.0 0;", "efg" | ? {$_ -notlike "*motion*"}</b></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<b><br>
</b></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Whats wrong?</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Cheers,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Henri.<br>
<br>
</div>
<br>
<fieldset class="x_mimeAttachmentHeader"></fieldset>
<pre class="x_moz-quote-pre">_______________________________________________
Pd-dev mailing list
<a class="x_moz-txt-link-abbreviated" href="mailto:Pd-dev@lists.iem.at" style="">Pd-dev@lists.iem.at</a>
<a class="x_moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-dev" style="">https://lists.puredata.info/listinfo/pd-dev</a>
</pre>
</blockquote>
</div>
</div>
</body>
</html>