I am trying to loop through a file to run commands remotely via SSH but its only sending the first command and stopping.while read a b c; do ssh root@$remoteserverip /usr/bin/mysql -e \grant all privileges on $a.* to $b@'localhost' identified by '$c';\  ; done < /dbusers.txtMySQL logging shows:Connect   root@localhost as anonymous onQuery     select @@version_comment limit 1Query     grant all privileges on db1.* to dbu1@'localhost' identified by 'passwd'Quitand that's it.Example contents of /dbusers.txtdb1 dbu1 passwddb2 dbu2 passwddb3 dbu3 passwdIf I use echo in front of ssh then it prints out all lines.
Bash one liner not looping
linux;bash;read