multi-exec

Perform a drush core command on all sites (batch mode).
Deprecated:
Similar functionality is in drush core 3.x, see http://drupal.org/node/652778 for details.

Please use drush -r /path/to/drupal @sites ${command} instead!

This command will be removed soon.

Aliases

mex

Arguments

command

The drush command to execute. For drush commands with blanks like 'watchdog show' make sure to use single or double quotes. Mandatory.

Options

--argument

Argument to pass to drush command e.g. 'site_offline 1' as argument for 'variable-set'. Optional.

--option

Option to pass to drush command. or drush itself e.g. '--nocolor' to suppress color highlighting on log messages. Optional.

Examples

 drush -r /path/to/drupal multi-exec cron
Run all cron hooks on all sites in your multisite installation.
 drush -r /path/to/drupal multi-exec variable-set --argument='site_offine 1' --option='--nocolor'
Put all sites in maintenance mode without using color highlighting on log messages.
 drush -r /path/to/drupal multi-exec updatedb
Execute the update.php process for all sites.
 drush -r /path/to/drupal multi-exec cache-clear
Flushes the cache for all sites

Generated on Tue Dec 28 12:09:01 2010 for drush_multi by  doxygen 1.5.8