<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>The expression in backquotes `bin/Debug/ConsoleApp` is interpreted by Perl 
then passed to either a Windows exec call or to a Windows command shell.  
The syntax has to match what Windows is expecting.  </DIV>
<DIV> </DIV>
<DIV>The syntax is not the same as what you are typing at the prompt since you 
are using the cygwin shell.  You can test the required syntax by opening a 
DOS command shell and trying your command there.  </DIV>
<DIV> </DIV>
<DIV>To start with try specifying the full (windows) path to the application, 
including the extension.  E.g. 
c:\\some\\dir\\bin\\Debug\\ConsoleApp.exe.  Use back slashes and double 
them up because they are inside back quotes.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Indy Singh<BR>IndigoSTAR Software -- www.indigostar.com</DIV>
<DIV 
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=fulko.hew@gmail.com 
href="mailto:fulko.hew@gmail.com">Fulko Hew</A> </DIV>
<DIV><B>Sent:</B> Friday, March 16, 2012 12:24 PM</DIV>
<DIV><B>To:</B> <A title=antoniosun@lavabit.com 
href="mailto:antoniosun@lavabit.com">Antonio Sun</A> </DIV>
<DIV><B>Cc:</B> <A title=toronto-pm@pm.org 
href="mailto:toronto-pm@pm.org">toronto-pm@pm.org</A> </DIV>
<DIV><B>Subject:</B> Re: [tpm] Perl getting the output from .Net 
apps</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV 
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none"><FONT 
face="courier new,monospace"><BR></FONT><BR>
<DIV class=gmail_quote>On Fri, Mar 16, 2012 at 12:11 PM, Antonio Sun <SPAN 
dir=ltr><<A 
href="mailto:antoniosun@lavabit.com">antoniosun@lavabit.com</A>></SPAN> 
wrote:<BR>
<BLOCKQUOTE 
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
class=gmail_quote>Hi,  
  <DIV> </DIV>
  <DIV>I bumped into this strange problem that Perl cannot get the output from 
  .Net apps. </DIV></BLOCKQUOTE>
<DIV><BR>... snip ...<BR></DIV>
<DIV> </DIV>
<DIV> </DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" 
class=gmail_quote>
  <DIV>
  <DIV>$ seq 5 | perl -pe 's|^3$|`bin/Debug/ConsoleApp`|e;'</DIV>
  <DIV>1</DIV>
  <DIV>2</DIV>
  <DIV> </DIV>
  <DIV>4</DIV>
  <DIV>5</DIV></DIV>
  <DIV> </DIV>
  <DIV>Boom, it suddenly stops working. </DIV></BLOCKQUOTE>
<DIV><BR>My first thought (as always when confronted with a Windows problem 
is...<BR>does the path work (...within Perl) ?<BR><BR><BR></DIV></DIV><BR>
<P>
<HR>
_______________________________________________<BR>toronto-pm mailing 
list<BR>toronto-pm@pm.org<BR>http://mail.pm.org/mailman/listinfo/toronto-pm<BR></DIV></DIV></DIV></BODY></HTML>