php - Why does calling drush command by system() fail? -
i have drupal 7 site on iis 7.5 server.
inside iis services manager choose user administrator rights in anonymous authentication settings.
i'm sure drush command in evn path. when logged user (win7) can call command everywhere.
however when try launch command inside drupal module:
$output = array(); $res = exec('drush --version', $output, $retval);
$retval 1 (error), $output , $res empty.
different command (sqlcmd) works ok. both commands has identical rights (file system)
what doing wrong here?
using absolute paths solves issue, paths without spaces.
Comments
Post a Comment