On Oct 23, 2008, at 11:22 AM, Philip Durbin wrote:
monnappa appaiah wrote:
i need help on something i'm working on.............I have
127
systems connected in the network, i want to write a script which
will run on
a management server, i shud be able to connect to each and every
system (all
the systems have same password) and execute certain commands and
the output
of those commands shud be put in a file........i'm new to perl, can
somebody
help me as to how can i do this?
You could use gsh:
gsh myhosts 'my_command.sh' > /tmp/output.txt
http://outflux.net/unix/software/gsh
Phil
Here's an example of using gsh:
http://stackoverflow.com/questions/243750/how-can-i-automate-running-commands-remotely-over-ssh#245114
Phil
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/