Link to home
Start Free TrialLog in
Avatar of crazywolf2010
crazywolf2010Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Bash Shell Framework

Gents,
I have number of Linux systems. We have tonnes of custom scripts to monitor,control & interrogate status of different jobs. Currently these scripts are located at each server and often updating one means leaving others out of sync. I have to go to each server and update them manually.  I think there is a better way to fix this problem.

I am looking for a BASH shell script console which will connect remotely to these servers and run scripts either located at console or at remote node. I can create password less login between servers using SSH.

Does any of you created shell console for similar use?

ASKER CERTIFIED SOLUTION
Avatar of gremwell
gremwell

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Duncan Roe
Or use CVS and have cvs update as a cron job
(i.e. pserver CVS: if the repository is unavailable one night, the update will happen the next)
Avatar of egarciat
egarciat



This is what you need:

http://en.wikipedia.org/wiki/Rsync

Assuming you don't need/have any unique scripts on each of your nodes, then a simple rsync from the master server to the nodes will ensure you sync any changes to the scripts.  You could add a cronjob to ensure it syncs on a regular basis, eg:

0 0 * * * rsync -av /usr/local/bin node1:/usr/local/bin