LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 09-06-2006, 07:42 AM   #1
vmware
LQ Newbie
 
Registered: Sep 2006
Posts: 1

Rep: Reputation: 0
remote execute a bash script


Hi folks!

I'd like to run a bash script on 10 Linux servers. I'd like to execute the command from one Linux server in the network, /bin/*.sh.... SSH is activated and configured, but how can I remote-execute this script from one server on all 10 servers? The script is installed on every server

/Tobbe
 
Old 09-06-2006, 07:51 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
a myriad of ways, first shot, i'd suggest ssh then. "ssh user@server /bin/myscript". obviously you'd be wanting pre-shared key authentication to remove the need for passwords.
 
Old 09-06-2006, 07:51 AM   #3
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
make another bash script which connects to each computer and executes the script.
 
Old 09-07-2006, 03:01 PM   #4
yanik
Member
 
Registered: Oct 2003
Location: Montreal Beach
Distribution: Debian Unstable
Posts: 368

Rep: Reputation: 30
Execute commands simultaneously on multiple servers:

http://tips.linux.com/article.pl?sid...1413229&tid=29
 
  


Reply



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
howto execute for loop on remote mach using shell script dsids Linux - Newbie 1 08-22-2006 03:07 AM
bash - execute commands on a remote machine capture results, etc dkrysak Programming 1 11-18-2005 01:50 PM
fastest way to execute another bash script ?? michael_util Programming 3 08-23-2004 10:04 AM
Remote Win Bat File execute Shell Script on AIX Server DriveMeCrazy AIX 5 05-26-2004 06:24 PM
Trying to execute bash script upon login?? mr-d-2003 Linux - Newbie 4 10-30-2003 03:15 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 10:18 AM.

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