I am trying to execute a set of commands specified in a bash script through my tcl script. I am pretty new to tcl so I could not find a way to do so, I consulted quite a few stack overflow links as well so I now know how to execute a single command from the tcl script.
Right now I am using this to execute a single command -
exec /usr/bin/sshpass ssh -o StrictHostKeyChecking=no $command
But how do I make sure that the script reads one command at a time from the bash script and execute the above command for each of the command?