Run a command line program and recover the returned value

Hi, is it possible for native targets like Windows, Linux and macOS, to run a command line program and receive the output it sends to the terminal?

Use:

var proess:Process = new Process("haxelib path openfl");
var proessData = proess.stdout.readAll().toString();
trace(proessData);
4 Likes