Capture another processes output

This is great for logging or getting information.

Execute without no parameters

Modern Pascal provides a method to execute a process in the background.

Execute with parameters

Modern Pascal provides a method to execute a process and pass it parameters.

Execute with Parameters Capturing Output

Then there are times where you need to run another program and parse its output.

Program DisplayAnEXEOutput.v1180922; uses Environment; var Ws:String; Begin ExecuteRun('/bin/ps',['-auxf'],Ws); Writeln(Ws); End.

Output from code above...