Functions to execute commands.

  1. 8.0.x includes/exec.inc commandwrappers
  2. 6.x includes/exec.inc commandwrappers
  3. 7.x includes/exec.inc commandwrappers
  4. 4.x includes/drush.inc commandwrappers
  5. 5.x includes/exec.inc commandwrappers
  6. master includes/exec.inc commandwrappers

Functions

Namesort descending Location Description
drush_download_file includes/drush.inc Download a file using wget, curl or file_get_contents, or via download cache.
drush_escapeshellarg includes/drush.inc Platform-independent version of escapeshellarg(). This only works for local commands. TODO: Make a unified drush_escapeshellarg that works on Linux and Windows.
drush_is_windows includes/drush.inc Check if the operating system is Windows.
drush_op includes/drush.inc Calls a given function, passing through all arguments unchanged.
drush_op_system includes/drush.inc Calls 'system()' function, passing through all arguments unchanged.
drush_os includes/drush.inc Determine the appropriate os value for the specified site record
drush_shell_cd_and_exec includes/drush.inc Executes a shell command at a new working directory. The old cwd is restored on exit.
drush_shell_exec includes/drush.inc Executes a shell command. Output is only printed if in verbose mode. Output is stored and can be retrieved using drush_shell_exec_output(). If in simulation mode, no action is taken.
drush_shell_exec_interactive includes/drush.inc Executes a command in interactive mode.
drush_shell_exec_output includes/drush.inc Returns the output of the most recent shell command as an array of lines.
drush_tarball_extract includes/drush.inc Extract a tarball.
_drush_download_file includes/drush.inc Download a file using wget, curl or file_get_contents. Does not use download cache.
_drush_escapeshellarg_windows includes/drush.inc Windows version of escapeshellarg().
_drush_shell_exec includes/drush.inc Internal function: executes a shell command on the local machine. This function should not be used in instances where ssh is utilized to execute a command remotely; otherwise, remote operations would fail if executed from a Windows machine to a…
_drush_shell_exec_output_set includes/drush.inc Stores output for the most recent shell command. This should only be run from drush_shell_exec().

File

includes/drush.inc, line 1175
The drush API implementation and helpers.