Bash script ignoring command on for loop -
i'm running basic loop bash script logs multiple linux boxes execute script , after script logs out of every box, wait 60 seconds. problem script not applying command within script.
#!/bin/bash in `cat test.txt`; ssh -a -t -o userknownhostsfile=/dev/null -o stricthostkeychecking=no -o batchmode=yes -o connecttimeout=5 $i "sudo puppet agent -t & "; sleep 60; done
Comments
Post a Comment