Drush enable module command automation

Events happening in the community are now at Drupal community events on www.drupal.org.
tusharkanta's picture

Drush enable command for enabling modules requires some human intervention with input to type in Y/N when prompted. Is there any way to do it fully automatically through some api or script calls?

Comments

Use -y or --yes to assume yes

mig5's picture

Use -y or --yes to assume yes to Y/n questions.

web@li35-166:~$ drush help | grep yes
-y, --yes                                 Assume 'yes' as answer to all prompts      

This question is probably more suited to the Drush group than Aegir

Expect

borfast's picture

tusharkanta, have you tried expect?

Edit: sorry, got the wrong name the first time.

Aegir hosting system

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: