Skip to content

os.outputof

starkos edited this page Apr 10, 2021 · 4 revisions

⚠️ We have a new website! Visit now for the most update to date documentation.
       This wiki is no longer being maintained.


Runs a shell command and return the output.

result, errorCode = os.outputof("command")

Parameters

command is a shell command to run.

Return Value

The output and error code 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