Skip to content

Instantly share code, notes, and snippets.

@zachseifts
Created May 3, 2012 21:25
Show Gist options
  • Save zachseifts/2589642 to your computer and use it in GitHub Desktop.
Save zachseifts/2589642 to your computer and use it in GitHub Desktop.
#!/bin/bash
DRUSH=/usr/local/bin/drush
PROJECTS=$HOME/projects/dev
for d in $(find $PROJECTS -type d -depth 1)
do
if [ -f $d/sites/default/settings.php ]; then
$DRUSH -r $d cron
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment