[vtkusers] Altenatives to popen() in VTK

Mathieu Malaterre mathieu.malaterre at gmail.com
Thu Apr 15 10:57:47 EDT 2010


On Thu, Apr 15, 2010 at 4:54 PM, Otahal, Thomas <tjotaha at sandia.gov> wrote:
>
> Hi all,
>
> We are currently using the popen() function to start an external MPI job
> from a VTK filter. The code works fine on MAC and Linux, however for Windows
> we need to perform some extra quoting around the mpiexec command and its
> arguments to get things working properly.   Does anyone know of good
> alternatives to popen() that are portable across different platforms?
> Ideally it would be something in VTK that gives you a platform neutral
> interface for starting an external process from a VTK filter.

#include <vtksys/Process.h>
vtksysProcess* process = vtksysProcess_New();

2cts
-- 
Mathieu



More information about the vtkusers mailing list