This repository has been archived on 2022-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
fuck-premake-old2/website/docs/os.outputof.md
2021-03-12 22:10:24 +01:00

439 B

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