Skip to content

os.outputof

Jason Perkins edited this page May 19, 2015 · 4 revisions

Runs a shell command and return the output.

result = os.outputof("command")

Parameters

command is a shell command to run.

Return Value

The output of the command.

Availability

Premake 4.0 or later.

Examples

-- Get the ID for the host processor architecture
local proc = os.outputof("uname -p")

See Also

Clone this wiki locally