Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need you guidance to solve my query.
How can I execute the scripts from some central unix server to other remote servers without actually copies the scripts on the remote servers ?
As I need to frequent update/change the scripts so I have to manually update all the scripts on the all remote servers. To avoid all such hassle, I want to put all the scripts with some common location and execute those scripts from that central location to all the remote servers; so that any script changes have to be done in the central server only.
Yes it is possible to use ssh that way - I don't have the syntax here at the moment, but there are some threads elsewhere on this forum that you can search through.
The remote servers could each mount the central server's filesystem containing the scripts and then run them. If you don't want to set up NFS, you could install sshfs on each remote server instead. http://fuse.sourceforge.net/sshfs.html If you want to control things completely from the central server (after installing sshfs on each remote), the central could open up an ssh session and run three commands: (1) mount the sshfs central server, (2) run the script, (3) unmount the sshfs central server. Or you could just leave the central server mounted all the time on the remotes.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.