You can use the “not yet official” boost.process if you want an object-oriented approach for managing the subprocess.
Or you can just use popen
itself, if you don’t mind the C-ness of it all.
More Related Contents:
- How do I execute a command and get the output of the command within C++ using POSIX?
- How to construct a c++ fstream from a POSIX file descriptor?
- How can I catch a ctrl-c event?
- Linux: Executing child process with piped stdin/stdout
- Why does the library linker flag sometimes have to go at the end using GCC?
- C++ error: undefined reference to ‘clock_gettime’ and ‘clock_settime’
- Is there an equivalent to WinAPI’s MAX_PATH under linux/unix?
- How much overhead is there when creating a thread?
- OpenMP and CPU affinity
- How to get the username in C/C++ in Linux?
- ThreadSanitizer only prints 2 frames
- Error: ‘pow’ was not declared in this scope
- Floating point comparison [duplicate]
- shared_ptr magic :)
- Check if a string contains a string in C++
- How to install the Raspberry Pi cross compiler on my Linux host machine?
- g++ linking order dependency when linking c code to c++ code
- Destroy and then construct new object using the same variable
- Compilation fails with “relocation R_X86_64_32 against `.rodata.str1.8′ can not be used when making a shared object”
- Sending Two or more chars using SendInput
- Using bitwise operators for Booleans in C++
- Is C++11’s long long really at least 64 bits?
- Is !! a safe way to convert to bool in C++?
- How to download a file with WinHTTP in C/C++?
- How can std::make_heap be implemented while making at most 3N comparisons?
- What is the right approach when using STL container for median calculation?
- printf rounding behavior for doubles
- How to break shared_ptr cyclic reference using weak_ptr
- Why is a C++ Vector called a Vector? [closed]
- gdb Could not find operator[]