Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2007-01

Exec

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Carsten Bager

On an Arm/Linux platform I call an external program (to calibrate a touch panel) with "Exec". That works OK. I can force the external program to return some values to the console. Is there a way I can pick up this output and read it from my program?

Carsten

Jonas Maebe
to Carsten Bager
Carsten Bager wrote 6 lines
On an Arm/Linux platform I call an external program (to calibrate a touch panel) with "Exec". That works OK. I can force the external program to return some values to the console. Is there a way I can pick up this output and read it from my program?

Not with exec. Use unix.popen instead (or the tprocess class in the process unit from the fcl, but that's a lot more heavy weight).

Jonas