[tpm] Perl getting the output from .Net apps

Indy Singh indy at indigostar.com
Fri Mar 16 09:57:35 PDT 2012

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.  

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.  

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.

Indy Singh
IndigoSTAR Software -- www.indigostar.com

From: Fulko Hew 
Sent: Friday, March 16, 2012 12:24 PM
To: Antonio Sun 
Cc: toronto-pm at pm.org 
Subject: Re: [tpm] Perl getting the output from .Net apps

On Fri, Mar 16, 2012 at 12:11 PM, Antonio Sun <antoniosun at lavabit.com> wrote:


  I bumped into this strange problem that Perl cannot get the output from .Net apps. 

... snip ...

  $ seq 5 | perl -pe 's|^3$|`bin/Debug/ConsoleApp`|e;'


  Boom, it suddenly stops working. 

My first thought (as always when confronted with a Windows problem is...
does the path work (...within Perl) ?

toronto-pm mailing list
toronto-pm at pm.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20120316/2166dc03/attachment.html>

More information about the toronto-pm mailing list