[Mono-list] popen() from mono
Kornél Pál
kornelpal at gmail.com
Mon Sep 29 11:43:11 EDT 2008
Hi,
You should use Process.Start:
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.start.aspx
It has support for standard input, output and error redirection.
Alternatively you can declare a P/Invoke call to popen but that will not
be platform independent.
Kornél
Felix Natter wrote:
> hello,
>
> I need to create a pipe to a child process. In C this can be done with
> popen() easily. Unforunately popen() isn't wrapped in mono. Is there
> something else that I could use?
>
> I know I could use the low-level functions pipe() and fork() but I'd like
> to avoid this.
>
> thanks,
> Felix Natter
More information about the Mono-list
mailing list