Advertisement
Guest User

Untitled

a guest
Sep 6th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #!/bin/bash
  2. user=$1
  3. pass=$2
  4.  
  5. if [ "$#" -ne 2 ];then
  6. echo "Please run the script with userid and password as arguments"
  7. fi
  8.  
  9. cat servers.txt | while read host
  10.  
  11. do {
  12.  
  13. ./sandy_try.sh $user $host $pass
  14.  
  15.  
  16. } < /dev/null; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement