[fpc-pascal] How to send operating system commands (Linux on RPi)?
bo.berglund at gmail.com
Sat Jul 2 07:54:51 CEST 2016
On Sat, 02 Jul 2016 01:12:34 +0200, Bo Berglund
<bo.berglund at gmail.com> wrote:
>The commands I am looking at now are:
>sudo ifup wlan0
>sudo ifdown wlan0
>How could this be accomplished in a FreePascal program running as user
To be specific I would like to know how I can send any command to the
Linux operating system from my FreePascal program?
Just doing this seems not to cut it:
writeln('sudo ifup wlan0');
This just *displays* the text on the program console, but I want it to
go to the operating system as a command...
On Windows one has to start cmd with the wanted command as a
parameter, what is the corresponding method on Linux from within
Developer in Sweden
More information about the fpc-pascal