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 28, 2008 20:08
Subject:
Re: Help required in writing a script
Message ID:
AB9AD74B-815E-4070-A599-2DB9BF7FFC2B@gmail.com
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

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