Bash script ignoring command on for loop
<p>I'm running a basic for loop bash script that logs into multiple linux boxes to execute a script and after the script logs out of every box, to wait 60 seconds. The problem is that the script is not applying the command within the script. </p>

<pre><code>#!/bin/bash for i in `cat test.txt`;  do ssh -A -t -o userknownhostsfile=/dev/null -o stricthostkeychecking=no -o batchmode=yes -o connecttimeout=5 $i "sudo puppet agent -t &amp; "; sleep 60; done
</code></pre>