getting the return value of a command using ACE in c++
I need to run a shell command on Linux from within a c++ process and get its return v开发者_如何转开发alue. Is there a way doing it with ACE? I know that in c++ I can use popen. I am looking for an ACE solution.
Assuming ACE is Adaptive Communication Environment, it looks like you need to call ACE_Process::return_value
. ACE_Process doc.
精彩评论