I can run /path/to/drush/drush status from the shell fine, but if run from a script called from cron I get:
Status: 500 Internal Server Error Content-type: text/html; charset=UTF-8
This implies that PHP CGI is being called rather than CLI. It looks like an environment issue – but how to resolve?
Running drush with –debug gives same result (ie no extra output from drush) The cron user is the same as the shell user The OS is Linux