[Mono-list] Capturing output from Linux Command Line programs

Paul paul at all-the-johnsons.co.uk
Tue Aug 16 02:39:13 EDT 2005


Hi,

> I'm not not using the Command line, and nowhere have I used >.

How are you launching the mono application? Have you got it so that .exe
is associated with mono?

> I am trying to capture stdout from command line programs so I can use
> that output in real time in a GUI application.

In which case you'll be launching mono manually (I'll guess). Add the
suggested 2>&1

> Can I have some sensible replies please.

Please provide as much info as you can and you'll get more specific
answers. I've always found 

mono myprog.exe 2>&1

to capture anything to STDOUT to work. If you're looking for more a
debugger style system, you need to launch the command line application
from inside of the application you want to grab the code from and echo
to the application.

TTFN

Paul
-- 
"A lot of football success is in the mind. You must believe you are the
best and then make sure that you are. In my time at Liverpool we always
said we had the best two teams on Merseyside, Liverpool and Liverpool
Reserves." - Bill Shankly
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20050816/e2f6d334/attachment.bin


More information about the Mono-list mailing list