Skip to content
mba105 edited this page Sep 24, 2014 · 2 revisions

Home > [Scripting Reference](Scripting Reference) > os.outputof


os.outputof

The os.outputof function runs a shell command and returns the output.

#!lua
result = os.outputof("command")

Parameters

command is a shell command to run.

Return Value

The output of the command.

Examples

#!lua
-- Get the ID for the host processor architecture
local proc = os.outputof("uname -p")
Clone this wiki locally