0

In a batch script I have things like:

sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password PASSWORDHERE'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password PASSWORDHERE'

Which throws the error message unexpected redirection associated with such lines, why is this happening and how can I get around it?

Dr.Avalanche
  • 1,944
  • 2
  • 28
  • 37

1 Answers1

1

You're probably running under a different shell (e.g.: plain sh)

Execute the script with bash.

Community
  • 1
  • 1
Karoly Horvath
  • 94,607
  • 11
  • 117
  • 176