C++ proc_open analogue
问题 There's a handy function in PHP called proc_open. It could be used to call an executable, opening its stdin , stdout and stderr as pipes. Is there a good cross-platform version of this function in C++? The only googlable thing is this tutorial for Windows (though code from it just hangs). 回答1: You could probably get 'somewhere' with popen (http://linux.die.net/man/3/popen) pstreams library (POSIX process control) - I have no prior experience with this, but it looks solid and was written by