Why don't you write a shell script that does your redirection etc and include this with your program ( eg, run that ). Use the right tool for the job.
Else run the original program and parse the output directly On 31 May 2013 13:28, Edward Ned Harvey (mono) < edward.harvey.m...@clevertrove.com> wrote: > > From: mono-list-boun...@lists.ximian.com [mailto:mono-list- > > boun...@lists.ximian.com] On Behalf Of cosy > > Subject: [Mono-list] How to Run Linux Execute Command ">" and "&" > > In linux / unix systems, a shell (bash, csh, etc) is an interactive > program that's used to launch and manage other programs. The symbols > and > & are arguments to the shell that instruct it to handle the output of the > child process differently from normal. > > In your case, you're basically writing the shell. You have a UI, and when > the user clicks something, your application launches another process. > > You'll either have to handle the IO from that child process yourself, or > find some way to wrap it up and make something else (like bash) handle it > for you. Maybe your program will actually create a bash shell script, and > then tell bash to run that script. > _______________________________________________ > Mono-list maillist - Mono-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list >
_______________________________________________ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list