Initial community commit
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user