Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 519 Bytes

README.md

File metadata and controls

18 lines (15 loc) · 519 Bytes

gm_execute

A Garry's Mod module that enables os.execute.

Release

For releases, click the releases tab.

Reference

-- Loads the `gm_execute` module.
require "execute"

--- Executes supplied command on shell.
-- If the command executes with status code zero the function returns the stdout as a 
-- string.  If the status is non-zero the function returns the stderr as a string.
-- @param command The shell command to execute.
-- @returns Either `stdout` or `stderr` from shell.
os.execute(command)