Johan, READ THE ENTIRE MESSAGE THAT YOU ARE QUOTING. You might be used
to top-posting, but the convention on this ML is bottom-quoting and
those links aren't just bits of somebody's sig, they contain the answer
to your question.
Johan Tu Toit wrote:
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 may also use a TProcess object:
http://www.freepascal.org/docs-html/fcl/process/tprocess.html
Here you have a tutorial with some examples:
http://wiki.lazarus.freepascal.org/Executing_External_Programs#TProcess
Apologies to everybody else for top-quoting and "shouting", but I think
there's a possibility that the OP's missed the message due to
unfamiliarity with the medium.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
_______________________________________________
fpc-pascal maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal