uce/site/doc/pages/shell_exec.txt
2026-06-16 23:02:45 +00:00

18 lines
398 B
Plaintext

:sig
String shell_exec(String cmd)
:params
cmd : string that contains the shell command line to be executed
return value : output of the command execution
:see
>sys
:content
Executes a Linux shell command and returns the generated output.
When command text includes user-controlled input, escape that input first with `shell_escape()`.
:example
print(shell_exec("echo hello from the shell"));