[tpm] OT: getting the output from .Net apps
Indy Singh
indy at indigostar.com
Fri Mar 16 12:44:31 PDT 2012
One work-around would be to direct the output a file first then ‘cat’ the file.
Indy Singh
IndigoSTAR Software -- www.indigostar.com
From: Antonio Sun
Sent: Friday, March 16, 2012 3:29 PM
To: arocker at vex.net
Cc: toronto-pm at pm.org
Subject: [tpm] OT: getting the output from .Net apps
Thanks Alan, I've made some interesting discovery based on your suggestion.
$ bin/Debug/ConsoleApp > output
$ wc output
1 3 23 output
It looks that my .Net app writes to STDOUT OK. That's what I've been testing.
But look.
$ bin/Debug/ConsoleApp | wc
0 0 0
$ echo `bin/Debug/ConsoleApp` | wc
1 0 1
So now I can confirm that it has nothing to do with Perl, but my .Net app and cygwin.
Still, anyone can help?
Thanks
On Fri, Mar 16, 2012 at 2:08 PM, <arocker at vex.net> wrote:
Is .Net specifically defined as writing to STDOUT?
You could try something like $bin/Debug/ConsoleApp | wc to see if the
output redirects normally.
Then perhaps $`bin/Debug/ConsoleApp` | wc and $wc `bin/Debug/ConsoleApp`
to see if there any problems with the subshell.
(It doesn't have to be wc, just another command that will produce an
identifiable result if ConsoleApp outputs something.)
_______________________________________________
toronto-pm mailing list
toronto-pm at pm.org
http://mail.pm.org/mailman/listinfo/toronto-pm
--------------------------------------------------------------------------------
_______________________________________________
toronto-pm mailing list
toronto-pm at pm.org
http://mail.pm.org/mailman/listinfo/toronto-pm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20120316/574f4f1e/attachment.html>
More information about the toronto-pm
mailing list