Edit a script in 2 redundant servers at once

Hi All,

We have a redundant server system and every time we need any change in any particular script then we need to do it individually in each of the server. I want to create a shell script such that if i make changes in primary server and run the script then it should update the changes to backup server as well. Please assist/guide me.

Regards,