Sometimes you need to execute a command on a lots of hosts on which you only have sudo
access. This is easy when the NOPASSWD option is set for you in the sudoers file.
However if this is not the case you run the risk of typing your password to often.
So yesterday I created
sudoatall.sh. A simple shell script
to solve this problem. The usage is something like
sudoatall.sh <file with hostnames> <what ever you want to execute>
There are however 2 catches. First the script has your sudo password assigned to a
variable. Secondly it is of course a great script to break all your hosts at once.