Run Drupal cron via drush with special mysql variable

It’s very handy to run Drupal’s cron via drush but sometimes you need special setting for the cron’s session like wait_timeout.

In that case, you could try eval.

drush eval "db_duery(\"[SQL GOES HERE]\"); drupal_cron_run();"
 

lewcpe

CTO at MFEC PLC. Chief Editor at Blognone.com