#!/bin/bash # this is needed as drush uses the TERM environment export TERM=dumb . /etc/aranea/origo-config cd $DRUPAL_LOCATION 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