LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 05-11-2006, 12:08 AM   #1
anil_garg5
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 ?

Thanks,
Anil
 
Old 05-11-2006, 12:41 AM   #2
musicman_ace
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-11-2006, 12:42 AM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
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, 07:07 AM   #4
anil_garg5
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, 03:14 PM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
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, 04:29 PM   #6
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,032

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


Reply

Tags
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 02:11 PM
rcmd for remote execution shivaligupta Linux - Networking 3 06-10-2005 07:19 AM
Thorny remote execution question davidcrawley Linux - Software 3 09-03-2004 03:32 PM
central location to download plugins? Perquisitor Linux - Newbie 1 07-14-2004 08:49 PM
Finding the execution location of a instruction iftiuk Programming 3 04-07-2004 08:54 AM


All times are GMT -5. The time now is 06:49 PM.

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