#!/bin/bash # this is needed as drush uses the TERM environment export TERM=dumb DRUPAL_ROOT=/usr/share/origo-web/drupal cd $DRUPAL_ROOT find sites/ -maxdepth 1 -type d -printf '%f\n' | while read FILENAME; do drush -l $FILENAME cron > /dev/null # sleep for a short amount of time to better distribute the load sleep 0.5 done exit 0