Computing.Net > Forums > Unix > Scripting Help - UNIX

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

Scripting Help - UNIX

Reply to Message Icon

Original Message
Name: andrushka
Date: October 31, 2005 at 13:46:26 Pacific
Subject: Scripting Help - UNIX
OS: 2.8
CPU/Ram: 4gb ram
Comment:

I am in the process of writing a script which will overwrite an obj.conf file on 10 web servers. This script will be staged on a machine that can connect to these web servers. Now here is the hard part (for me). I can wirte a basic script to overwrite the obj.conf file (eg, cp xxx.obj.ex obj.conf) for each machine individually, but how can I write it so that all 10 machines will be included in the script so I don't have to login to each web server individually and run the script in the case of a Business Resumption situation?
thanks in advance

thanks,

andy


Report Offensive Message For Removal


Response Number 1
Name: cdac1000
Date: November 9, 2005 at 03:46:57 Pacific
Reply: (edit)

maybe you can use ssh-keygen and copy the public key across all the server. Once this is done, you can simply use scp to copy the file.

Have you conisiderd that ?


Report Offensive Follow Up For Removal

Response Number 2
Name: zilla
Date: November 15, 2005 at 14:01:49 Pacific
Reply: (edit)

ssh with remote command is one way of sollving your problem.

video rapezilla-master


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge
Poll History




Data Recovery Software