Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

run_command()

Description

Utility function which works like system(), but returns the complete output string rather than just the last line of it.

Parameters

ColumnTypeDefaultDescription
$command string Command to run
$geterrors boolean false Set to TRUE to include errors in the output
$params array array List of placeholders and their values which will have to be escapedshellarg()d.
$timeout int 0 Maximum time in seconds before a command is forcibly stopped

Return

string Command output

This article was last updated 26th July 2024 21:35 Europe/London time based on the source file dated 23rd July 2024 11:50 Europe/London time.