开发者

getting the return value of a command using ACE in c++

开发者 https://www.devze.com 2023-04-10 14:27 出处:网络
I need to run a shell command on Linux from within a c++ process and get its return v开发者_如何转开发alue.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消