use popen() to invoke external programs, or for more control, execve()/execvp()/etc. :)<div><br></div><div>otherwise, using systemd-provided API (like its DBus-API is always preferable)<br><div><br></div><div>Regards,</div>
<div>Christian Parpart.<br><br></div><br><div class="gmail_quote">On Sun, Nov 6, 2011 at 9:43 PM, Michael Biebl <span dir="ltr"><<a href="mailto:mbiebl@gmail.com">mbiebl@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2011/11/6 Michael D. Berger <<a href="mailto:m.d.berger@ieee.org">m.d.berger@ieee.org</a>>:<br>
<div class="im">> I see no way to directly call systemctl from a C++<br>
> program, so I'll use a pipe. Right? I think a<br>
> library function would be better.<br>
<br>
</div>Not knowing exactly what you are trying to do, please note you can use<br>
D-Bus to access systemd.<br>
If you are using C++, using QtDBus is probably the most convenient way.<br>
<span class="HOEnZb"><font color="#888888"><br>
Michael<br>
<br>
--<br>
Why is it that all of the instruments seeking intelligent life in the<br>
universe are pointed away from Earth?<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</div></div></blockquote></div><br></div>