In C there is popen() and system() to invoke external commands. Is there a more standardized way in C++ to do this using for instance STL and 'std::'?
            Asked
            
        
        
            Active
            
        
            Viewed 95 times
        
    -2
            
            
        - 
                    2http://stackoverflow.com/questions/478898/how-to-execute-a-command-and-get-output-of-command-within-c – Hatted Rooster Feb 10 '16 at 17:28
 - 
                    No. BTW C++ was always designed with backward C compatibility in mind – Basile Starynkevitch Feb 10 '16 at 17:29
 - 
                    2Wow not to be snarky but you could have typed your question into Google or Bing or whatever instead of the new question page. – djechlin Feb 10 '16 at 17:29
 
1 Answers
3
            No. it's the same as the C one.
#include <cstdlib> and then use std::system("whatever your command is").
        shafeen
        
- 2,431
 - 18
 - 23