[Mono-list] How to Run Linux Execute Command ">" and "&"
Edward Ned Harvey (mono)
edward.harvey.mono at clevertrove.com
Fri May 31 12:28:10 UTC 2013
> From: mono-list-bounces at lists.ximian.com [mailto:mono-list-
> bounces at 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.
More information about the Mono-list
mailing list