Last active
August 29, 2015 13:58
-
-
Save nestoru/10287003 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pure command line | |
$ ./runInHosts.sh "user@server1.sample.com user@server2.sample.com user@server3.sample.com user@server4.sample.com user@server5.sample.com" date | |
user@server5.sample.com: Fri Jul 12 11:45:02 EDT 2013 | |
user@server2.sample.com: Fri Jul 12 11:45:02 EDT 2013 | |
user@server4.sample.com: Fri Jul 12 11:45:02 EDT 2013 | |
user@server3.sample.com: Fri Jul 12 11:45:02 EDT 2013 | |
user@server1.sample.com: Fri Jul 12 11:45:02 EDT 2013 | |
# using a file | |
$ cat hosts.txt | |
user@server1.sample.com | |
user@server2.sample.com | |
user@server3.sample.com | |
user@server4.sample.com | |
user@server5.sample.com | |
$ ./runInHosts.sh hosts.txt date | |
user@server5.sample.com: Fri Jul 12 11:45:02 EDT 2013 | |
user@server2.sample.com: Fri Jul 12 11:45:02 EDT 2013 | |
user@server4.sample.com: Fri Jul 12 11:45:02 EDT 2013 | |
user@server3.sample.com: Fri Jul 12 11:45:02 EDT 2013 | |
user@server1.sample.com: Fri Jul 12 11:45:02 EDT 2013 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment