Reputation: 2006
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?
Upvotes: 0
Views: 178
Reputation: 96276
You're probably running under a different shell (e.g.: plain sh
)
Execute the script with bash
.
Upvotes: 1