How can I execute the command line \"asterisk -rx \"reload\"\" in c++? Please help. I need an example. I am working on ubuntu server and I want to execute this command line from
system("asterisk -rx \"reload\"") would probably work, if you don't need standard output or error from the process.
If you need results from the process, here is an example of using C's popen(), or you could look at Boost.Process for a C++ approach.