The list of computers is given as a text list of IP adresses named "all.list". Each IP in saparate line
To execute commands on each computer create file all.sh with following text
for i in `cat all.list | awk '{ print $i}'` ; do echo $i; ssh $i $1 ; done
Execute commands by
> source ./all.sh "ls -la"
This blog is created to keep things which I always need to remember in Python and Linux scripting. ... and few other things.
Wednesday, February 24, 2010
Subscribe to:
Post Comments (Atom)
Followers
About Me
- Krzysztof Pakuła
- Znak zodiaku - Lew
No comments:
Post a Comment