[fpc-pascal] Re: It is possible to pass command line to pascal
pascaldragon at googlemail.com
Tue Jul 2 09:58:48 CEST 2013
Am 02.07.2013 06:05, schrieb Johan Tu Toit:
> Hi all, thanks for your help, I am happy to know about fpuname
> function from the baseunix unit. the fpSystem function from unix unit
> also helpfull but only return an integer. I am still looking on how to
> get a result as a string not a integer only
You already quoted where you find a solution for this below:
> You may also use a TProcess object:
> Here you have a tutorial with some examples:
It's not a simple "result value", but you'll need to do a bit of work.
> On 7/1/13, Guillermo Martínez <gmartinez at burdjia.com> wrote:
>>> From: Rainer Stratmann <rainerstratmann at t-online.de>
>>> Subject: Re: [fpc-pascal] It is possible to pass command line to
>>> On Sunday 30 June 2013 00:59:59 you wrote:
>>>> I Tried, but only return an integer not a string value.
>>> Thats right.
>>> You have to put the result in a file and then afterwards read the
>>> ls uname -r > file.txt
>>> The integer is the result code of the execution.
>>> It contains information if the execution was successful.
>> You may also use a TProcess object:
>> Here you have a tutorial with some examples:
>> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
More information about the fpc-pascal