develooper Front page | perl.beginners | Postings from October 2008

Re: Help required in writing a script

Thread Previous | Thread Next
From:
Philip Durbin
Date:
October 23, 2008 08:22
Subject:
Re: Help required in writing a script
Message ID:
490096AC.2010105@gmail.com
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


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About