Re: [fpc-pascal] How to send operating system commands (Linux on RPi)?

2016-07-02 Thread Bo Berglund
On Sat, 2 Jul 2016 09:21:17 +0200, Sven Barth wrote: >Am 02.07.2016 07:55 schrieb "Bo Berglund" : >> On Windows one has to start cmd with the wanted command as a >> parameter, what is the corresponding method on Linux from within >> FreePascal? > >Either fpsystem() from unit BaseUnix (this is the

Re: [fpc-pascal] How to send operating system commands (Linux on RPi)?

2016-07-02 Thread Sandro Cumerlato
I find convenient to use TProcess, take a look at the wiki: http://wiki.freepascal.org/Executing_External_Programs#TProcess ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to send operating system commands (Linux on RPi)?

2016-07-02 Thread Sven Barth
Am 02.07.2016 07:55 schrieb "Bo Berglund" : > > On Sat, 02 Jul 2016 01:12:34 +0200, Bo Berglund > 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 > >Pi? > > To be specific I woul