Running drush without a bunch of header info

by jenny on 21 March 2010 - 03:40pm in

Edit the wrapper script drush/drush and add a -q flag to the exec php call, like so:

<?php
# We check for a command line (cli) version of php, and if found use that.
which php-cli >/dev/null 2>&1
if [ "$?" = 0 ] ; then
  exec php
-cli $SCRIPT_PATH --php="php-cli" "$@"
else
 
# Alternatively we run with straight php, which works on most other systems.
  # The --php=`which php` is for Dreamhost, which behaves oddly.  See http://drupal.org/node/662926
 
exec php -q $SCRIPT_PATH --php=`which php` "$@"
fi
?>