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?