The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
what is the command to connect to remote terminals sendtorohitgupt UNIX for Dummies Questions & Answers 1 05-10-2005 11:08 AM
view all others terminals vkandati UNIX for Dummies Questions & Answers 2 03-08-2005 04:27 PM
Pseudo Terminals S.P.Prasad High Level Programming 2 01-06-2003 10:11 PM
Regarding UNIX dumb terminals Ummeed11 UNIX for Dummies Questions & Answers 1 01-15-2002 07:17 PM
App for internet access on unix terminals Jigger UNIX for Dummies Questions & Answers 5 02-21-2001 06:49 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-05-2006
Registered User
 

Join Date: May 2006
Posts: 2
one command for all unix terminals

Hi, I am working in huge environment, I do type commands from my terminal window repeadly in all same setup unix environments. I am looking some kind of a terminal emulator or some simple program that will help me?

basically if type command like 'ls' in one unix terminal window it should echo the same command in all open unix terminal windows. if I hit 'enter' in one terminal window it execute same 'enter' command in all unix terminals show me the list of files in all unix terminals. I hope you guys understand my point.

thanks
Reply With Quote
Forum Sponsor
  #2  
Old 05-08-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,298
I'm not sure.... it sounds like you want a "master" terminal that you enter commands into, then a lot of "slave" terminals that receive the command all at once from the master. The slaves will each be connected to different unix boxes.

I don't know how to do that, I have seen one terminal that executed one command using remsh against several different remote boxes.

Kind of like this
Code:
echo "Enter command \c"
read command
for i in host1 host2 host3
do
    remsh "$i" "$command"
done
try man remsh
Reply With Quote
  #3  
Old 05-08-2006
Registered User
 

Join Date: May 2006
Posts: 2
thanks for your advise. unfortunatly in our environment doesn't support remsh we use ssh & ssh2 protocals.

That is why after I login group of terminals execute one command for all terminal s that i logon. I think some kind of windows terminal emulators help me.
Reply With Quote
  #4  
Old 05-08-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,298
ssh additionally provides the same functionality as remsh - read the man page
Code:
ssh user@hostname command
You need to set up authentication keys.
Reply With Quote
  #5  
Old 05-09-2006
Registered User
 

Join Date: Mar 2004
Location: Esher, Surrey, England.
Posts: 31
The solution that I use is a Java program 'ClusterSSH'. You can open up multiple sessions and use a single window to type commands to all of them.

If you search on Google it's not too hard to find.
Reply With Quote
  #6  
Old 05-09-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,298
Good solution.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 02:23 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0