Edward Bartolo <edb...@gmail.com> 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. _______________________________________________ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng