:: Re: [DNG] Systemd Shims
Góra strony
Delete this message
Reply to this message
Autor: tilt!
Data:  
Dla: dng
Temat: Re: [DNG] Systemd Shims
On 08/18/2015 12:49 PM, Edward Bartolo wrote:
> 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.
>
> I am using the TProcess class. The program runs sudo -s ifup wlan0
> successfully but it is failing to capture the CLI output.


Maybe setting "poStderrToOutPut" from

    http://www.freepascal.org/docs-html/fcl/process/tprocess.options.html


helps?

Kind regards,
T.