use popen() to invoke external programs, or for more control,
execve()/execvp()/etc. :)

otherwise, using systemd-provided API (like its DBus-API is always
preferable)

Regards,
Christian Parpart.


On Sun, Nov 6, 2011 at 9:43 PM, Michael Biebl <[email protected]> wrote:

> 2011/11/6 Michael D. Berger <[email protected]>:
> > I see no way to directly call systemctl from a C++
> > program, so I'll use a pipe.  Right?  I think a
> > library function would be better.
>
> Not knowing exactly what you are trying to do, please note you can use
> D-Bus to access systemd.
> If you are using C++, using QtDBus is probably the most convenient way.
>
> Michael
>
> --
> Why is it that all of the instruments seeking intelligent life in the
> universe are pointed away from Earth?
> _______________________________________________
> systemd-devel mailing list
> [email protected]
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to