Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This 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.


  Search this Thread
Old 05-10-2006, 11:08 PM   #1
LQ Newbie
Registered: Oct 2003
Posts: 2

Rep: Reputation: 0
Remote Script execution from the central location

Hi Group,

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.

Please suggest how it can possible ?

Old 05-10-2006, 11:41 PM   #2
Senior Member
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
If the target PC has the SSH server, you can pipe commands through ssh.
Old 05-10-2006, 11:42 PM   #3
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
Can you use rsync in a cron job on the servers to get the updated copy of the script and run it?
Old 05-11-2006, 06:07 AM   #4
LQ Newbie
Registered: Oct 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for your reply.

Is it possible to keep the scripts locally in my machine and execute those script on the remote server in SSh or any other way ?
Old 05-11-2006, 02:14 PM   #5
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
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.
Old 05-11-2006, 03:29 PM   #6
Senior Member
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian
Posts: 2,192

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
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. 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.


linux, script, shell

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote Execution issinho Linux - Networking 5 07-08-2005 01:11 PM
rcmd for remote execution shivaligupta Linux - Networking 3 06-10-2005 06:19 AM
Thorny remote execution question davidcrawley Linux - Software 3 09-03-2004 02:32 PM
central location to download plugins? Perquisitor Linux - Newbie 1 07-14-2004 07:49 PM
Finding the execution location of a instruction iftiuk Programming 3 04-07-2004 07:54 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:05 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration