12.07.2015 Views

Creating and getting information about processes. - Poco

Creating and getting information about processes. - Poco

Creating and getting information about processes. - Poco

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Creating</strong> a Process With I/O Redirection> ProcessH<strong>and</strong>le Process::launch(const std::string& path, const std::vector& args,Pipe* inPipe, Pipe* outPipe, Pipe* errPipe)creates a new process by launching the executable specified bypath <strong>and</strong> passing it the comm<strong>and</strong> line arguments given in args.> Pointers to <strong>Poco</strong>::Pipe objects for the new process' st<strong>and</strong>ardinput, st<strong>and</strong>ard output <strong>and</strong> st<strong>and</strong>ard error channel can bepassed. If a non-null pointer is passed, the correspondingchannel will be redirected to the pipe.> The same Pipe instance can be used for outPipe <strong>and</strong> errPipe.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!