LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-19-2012, 08:58 AM   #1
sanjay87
Member
 
Registered: Oct 2011
Posts: 164

Rep: Reputation: Disabled
How to run a Shell Script on multiple server at same time


Hi All

whether there is any possibilty to execute a script on multiple server simultaneously ,from my local machine.
 
Old 07-19-2012, 08:59 AM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,309

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
you can probably automate something using ssh with keys.
 
Old 07-20-2012, 05:42 AM   #3
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
It’s a question how you define “simultaneously”. If you create a loop or use some common tools for it, it’s often not really simultaneously but instead one node after the other. Even if these tools fork: if there is only one network interface in your local machine, it can’t be started on all nodes at the same time. To have it running really simultaneously on all machines, it would mean to synchronize the clocks and prepare them to start at a predefined time the script in question.
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Run shell script on multiple linux servers vanish78 Linux - Newbie 5 05-16-2012 10:42 AM
To run a shell script automatically on time A.Hariharasudhan Linux - Server 1 10-08-2010 01:20 AM
Shell Script: run multi for-loop at the same time? Dr_Death_UAE Programming 2 11-10-2009 10:09 AM
Shell Script - Change user & run multiple commands ijf99 Linux - Newbie 1 01-26-2009 06:15 AM
shell script to make a program run for a certain time Valkyrie_of_valhalla Programming 4 08-01-2006 06:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:07 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
Open Source Consulting | Domain Registration