A portable solution would be boost.process
(Note: this has been proposed as a Boost library, and released under the same license terms, but not officially accepted. See also Where is Boost.Process?)
More Related Contents:
- redirect stdout/stderr to a string
- How do I execute a command and get the output of the command within C++ using POSIX?
- Order of evaluation of arguments using std::cout
- Linux API to list running processes?
- Detect if stdin is a terminal or pipe?
- Capturing stdout from a system() command optimally [duplicate]
- C++ alignment when printing cout
- How to detect win32 process creation/termination in c++
- Read binary data from std::cin
- Is it safe to fork from within a thread?
- Are child processes created with fork() automatically killed when the parent is killed?
- How can I redirect stdout to some visible display in a Windows Application?
- Prevent user process from being killed with “End Process” from Process Explorer
- C++, How to determine if a Windows Process is running?
- Is it possible to set timeout for std::cin?
- C++ Get Username From Process
- Capturing process output via OutputDataReceived event
- Rewinding std::cout to go back to the beginning of a line
- Writing to stdin and reading from stdout (UNIX/LINUX/C Programming)
- Redirect stdout+stderr on a C# Windows service
- Load the same dll multiple times [closed]
- Redirect both cout and stdout to a string in C++ for Unit Testing
- How to check if a file has been opened by another application in C++?
- Redirect stdin and stdout in Java
- Toy shell not piping correctly
- Is there a guarantee of stdout auto-flush before exit? How does it work?
- How to get hWnd of window opened by ShellExecuteEx.. hProcess?
- How to get the starting/base address of a process in C++?
- Why does StandardOutput.Read() block when StartInfo.RedirectStandardInput is set to true?
- How to create a process in C++ on Windows?