winamp/Src/external_dependencies/openmpt-trunk/include/premake/website/docs/os.outputof.md

33 lines
439 B
Markdown
Raw Normal View History

2024-09-24 12:54:57 +00:00
Runs a shell command and return the output.
```lua
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 ###
```lua
-- Get the ID for the host processor architecture
local proc = os.outputof("uname -p")
```
### See Also ###
* [os.executef](os.executef.md)