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

Popular posts from this blog

Capture and play voice with Asterisk ARI -

c++ - Can not find the "fiostream.h" file -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -