Function __global->execute_nicely

Definitions

sources/file_permissions_check.php

  • Execute a shell command, returning full output, with a guaranteed line break if not blank.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$command string No No required parameter N/A N/A Command to run

Returns

  • Command output
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Execute a shell command, returning full output, with a guaranteed line break if not blank.
 *
 * @param  string $command Command to run
 * @return string Command output
 */

function execute_nicely(string $command) : string