[Mono-list] popen() from mono

Kornél Pál kornelpal at gmail.com
Mon Sep 29 11:43:11 EDT 2008


You should use Process.Start:

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.


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