Show quoted text 16 lines
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

Mailing lists / fpc-pascal / 2013-07
5 messages · 5 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
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
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
Johan Tu Toit wroteHi 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:
It's not a simple "result value", but you'll need to do a bit of work.
Regards,
Sven
Hi all, thanks for your help, I am happy to know about fpuname function from the baseunix…
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.
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.
Hi all, thanks for your help, I am happy to know about fpuname function from the baseunix…
In our previous episode, Johan Tu Toit said:
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
First, please post the actual command line to execute and if where (what directory) matters. E.g. it matters for ls, but not for uname.
Since
>> ls uname -r > file.txt
this is a bit too vague and ambiguous.