:: Re: [DNG] Systemd Shims
Top Page
Delete this message
Reply to this message
Author: Rainer Weikusat
Date:  
To: dng
Subject: Re: [DNG] Systemd Shims
Edward Bartolo <edbarx@???> writes:
> At the moment I am stuck trying to use sudo to run ifup from within my
> frontend. This testing phase is important as I need to ascertain
> myself that the class I am using can actually capture CLI output.
>
> If anyone from Devuan knows of a Lazarus function that I can use to
> capture the output of an external program running with root
> privileges, it will be much of an impulse for my coding exercise.


http://www.freepascal.org/docs-html/rtl/unix/popen.html

That's very likely not the most sensible solution as it likely
incorporates both C stdio and executing an intermediate /bin/sh but it
should be the simplest.