0

I am creating a bash script to automate some stuff including drush commands. When using drush vget I always get Drupal messages, but I only want the value of the variable. This prevents me from correctly using the drush vget output. I already tried with output formats etc. but I always get the messages. How to prevent the Drupal messages to use the output of drush vget in my shell script?

  • What sort of messages? Errors/warnings? The variable output should be on the last line, should be easy to parse that – Clive Oct 13 '16 at 11:14
  • In my case warnings. But I just realized they are just printed to the command line and are not contained in the return value itself. So it is actually working. Since I was printing my variable directly for debugging it looked like it contained the messages as well :-) – bechtold Oct 13 '16 at 11:32
0

I just realized they are just printed to the command line and are not contained in the return value itself. So it is actually working. Since I was printing my variable directly for debugging it looked like it contained the messages as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.