I want to make drush script for updating production site. (drush php-script)
In the script, i will do some drush commands and other functions with drupal api. (e.g. drush updb). How do i execute "updb" in script?

Comments

moshe weitzman’s picture

Status: Active » Fixed

See drush_invoke() to keep new actions in same process or drush_invoke_process() to shell out a new process.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.