Questions tagged [drush]

drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt.

See http://drush.ws, the homepage for the drush project. It contains many important resources for drush users.

[A list of modules that include Drush integration.][3]

(drush is not a module)

[3]: http://A list of modules that include Drush integration.

346 questions
0
votes
1 answer

child_process working directory

I am trying to execute a child process in a different directory then the one of its parent. var script = "drush language-add cn"; var folderDrush = "/data/www/sites/site_cn_country"; exec(script, {cwd:folderDrush} , function (err, stdout, stderr) { …
MNicole
  • 3
  • 2
0
votes
1 answer

PHP Fatal error: Call to undefined function imap_rfc822_parse_adrlist()

i imported a webproject under drupal 7 cms and i'm facing this error on sending email using drush in terminal typing this command (drush queue-mail-send-all) : $ drush queue-mail-send-all PHP Fatal error: Call to undefined function…
Adel Bachene
  • 974
  • 1
  • 14
  • 34
0
votes
2 answers

Is there a way to write a script for Drupal without write a module?

I want to retrieve field values of some nodes in Drupal 6. Can I do this without writing a module as it is a small thing. Can I do it using Drush,how to write a drush script for that? Please anyone help me?
IshaS
  • 837
  • 1
  • 10
  • 31
0
votes
1 answer

Moving a database from Wamp to One.com

I have a domain in one.com so as phpmyadmin from there. i installed drupal drush and wamp but the problem is i have got a phpmyadmin from wamp too, how can i make this work/ redirect/ move over to my one.com ? It's just before I go and install drush…
0
votes
1 answer

Drush can't connect to local MySQL through socket on WAMP

*I asked this on drupal.stackexchange, but it seems like the question relates more to Cygwin and WAMP, so I'm reposting here. Trying to set up Drush with in a local dev environment on Windows 7 and can't get MySQL properly configured. A test command…
nkanderson
  • 483
  • 1
  • 8
  • 21
0
votes
4 answers

Only some drush commands working

I'm trying to get drush working on my ubuntu laptop because I want to try out the omega theme in Drupal, but some commands just don't work. For example: drush en omega or drush omega-wizard The Error I get: Drush was not able to start…
mtthias
  • 177
  • 3
  • 16
0
votes
1 answer

Aegir install fails on hostmaster installation

I am trying to install manually Aegir on Ubuntu 14.04 VPS backed with Nginx and MariaDB. I have followed: http://community.aegirproject.org/content/installing/manual/nginx-mariadb-php-fpm-single-server-installation and modified last command: drush…
Michlis
  • 107
  • 11
0
votes
1 answer

Capistrano; Check if server is primary

So, I run some commands with Drush (Drupal) on the primary server post deployment (cache clearing, database updating, etc). I have a block in my deploy.rb like so; after :restart, :clear_cache do on roles(:web), in: :groups, limit: 3, wait: 10 do …
Christian
  • 3,917
  • 2
  • 23
  • 40
0
votes
1 answer

How to get error and their codes in drush in a shell sh script?

I'm launching some drush commands inside a shell script sh. How can i get if the command has terminated with no error? And, in case of error, how can i get the error and present it to the user executing the script?
Sasha Grievus
  • 2,566
  • 5
  • 31
  • 58
0
votes
0 answers

Deleting node with Drush php script

I'm trying to delete a Drupal node based on its title with Drush. The delete_poi.php script I'm calling looks like this:
silvdb
  • 193
  • 1
  • 4
  • 11
0
votes
2 answers

Drush command(s) run on Drupal 6 sites, but not Drupal 7?

I am running into an issue with a customer's Drupal sites. He has a number of D6 installs, and a new D7 that he's just starting on. All of these sites are on the same shared hosting package. The problem is when running certain drush commands only on…
TunaMaxx
  • 1,782
  • 12
  • 18
0
votes
1 answer

Why I get Forbidden when trying to install drush on Travis CI via composer?

This composer command fails on my Travis CI project (example failed build): composer global require drush/drush:dev-master It fails with: The 'https://api.github.com/repos/RobLoach/Console_Table/zipball/9f80c91a9fc01a3cce71ae80ea5bd473cb0eba4c' URL…
klausi
  • 491
  • 5
  • 17
0
votes
1 answer

Use drush to sync module configurations, not entire DB?

I just learned of the awesome power of sites aliases and drush sql-sync. This is great. Is there a way to sync not the entire DB, but rather just the module configuration settings for one module? The reason that I ask is because I have a…
empyrean
  • 75
  • 1
  • 1
  • 8
0
votes
1 answer

Perl Drush Command script error

I'm trying to add php code snippet into a Drupal web form node. I'm getting the error message syntax error near unexpected token `(' which is occurring on the line below the Drupal Query comment. Any help? I escaped the parens and dollar signs.…
Don Sevcik
  • 915
  • 1
  • 8
  • 23
0
votes
1 answer

difference btwn entering commands after ssh vs entering as a one-liner

Kind of an odd problem: When I do this, everything works fine: ssh abc@myurl drush -v But like this it fails: ssh abc@myurl "drush -v" It produces: : No such file or directorysh/drush: line 10: cd: /cygdrive/c/ProgramData/Drush /drush.phpopen…
Magnus
  • 10,736
  • 5
  • 44
  • 57