Recent

Author Topic: MAC OSX execute external program  (Read 2378 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
MAC OSX execute external program
« on: April 17, 2017, 10:15:55 pm »
Who tells me a way that works to run an external program on mac os x (Sierra) and retrieve the result!
Like if I execute the command:

/Myprogram/pprogram UID

and it gives me

$0123456

If the terminal does launch, but do not know how to run a Lazarus program.
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: MAC OSX execute external program
« Reply #1 on: April 17, 2017, 10:18:42 pm »
Who tells me a way that works to run an external program on mac os x (Sierra) and retrieve the result!

TProcess, same as other platforms.

 

TinyPortal © 2005-2018