one command for all unix terminals


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users one command for all unix terminals
# 1  
Old 05-05-2006
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
# 2  
Old 05-08-2006
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
# 3  
Old 05-08-2006
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.
# 4  
Old 05-08-2006
ssh additionally provides the same functionality as remsh - read the man page
Code:
ssh user@hostname command

You need to set up authentication keys.
# 5  
Old 05-09-2006
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.
# 6  
Old 05-09-2006
Good solution.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How 2 run same command across all open terminals

Hi folks. This has been bothering me for a while. Among the 8 virtual desktops I'm using, I have 18 terminals open right now. I change some of my user configuration (e.g. put a new alias into ~/.bashrc); but in order to use this new added alias, I have to source the config file: .... (4 Replies)
Discussion started by: mirni
4 Replies

2. UNIX Desktop Questions & Answers

non-overlapping terminals

Hi Everyone! I was wondering if there's an easy way to have terminals (gnome-terminal for instance) be open in such a way that they're not overlapping each other? I suppose I could play around with the --geometry option but that would imply me checking whether a terminal is already at a given... (3 Replies)
Discussion started by: anthalamus
3 Replies

3. Hardware

How to make terminals with a PC(UNIX/LInux) support?

I want to build a network, in this network there is only one PC and 50 terminals, 50 students can use this system to study UNIX/Linux. In the old days, computer was very expensive, many scientists shared a computer with terminals, that means a terminal has no cpu, memory and hardisk. In... (5 Replies)
Discussion started by: haixiao_liu
5 Replies

4. UNIX for Advanced & Expert Users

The "PS" command was displaying*terminals named as "SYSCON"

Hi, When typing the command ps -fe.the system is showing a process called SYSCON:confused:.... I am not sure what process is that.I hava a script that kills all command staring with 'sys' but i don't want to kill syscon:( since i think it is some system process:confused: .Please help me to find... (1 Reply)
Discussion started by: kiranjose85
1 Replies

5. UNIX for Dummies Questions & Answers

what is the command to connect to remote terminals

what is the command to connect to remote terminals? (1 Reply)
Discussion started by: sendtorohitgupt
1 Replies

6. UNIX for Dummies Questions & Answers

view all others terminals

i'm responsible for maintenance at my place and would like to watch all terminals in front me.i log myself into one terminal, but would like to view copy of other's terminals visible to me, it is just like for audit/security watch. (2 Replies)
Discussion started by: vkandati
2 Replies

7. UNIX for Advanced & Expert Users

Multiple Terminals

Dear Members, I have aquired a load of old Wyse dumb terminals. I have a Linux system set up that I want to be the host for all of these. Now, I know these don't use cat5 or standard networking. They are all done through serial (com) ports. However, I researched this more and found a converter... (25 Replies)
Discussion started by: Phobos
25 Replies

8. UNIX for Dummies Questions & Answers

Making X terminals out of a PC

Well I was trying to configure an Old PC having Win 3.1 to speak X with my UNIX server . I looked at notes , Looks like Debian Linux gives a base tarball to help boot of a floppy and talk to the XDMCP server . Well I was just hoping if there are other open source tools out there which would... (1 Reply)
Discussion started by: DPAI
1 Replies

9. UNIX for Dummies Questions & Answers

Regarding UNIX dumb terminals

Respected members of the Forum, This is my first post. I have a few questions regarding dumb terminals and VT100 dumb terminal emulators. I have to connect a few dumb terminals to an IRIX server There are two options 1) Use Dumb terminals directly 2) Use a Terminal emulator like... (1 Reply)
Discussion started by: Ummeed11
1 Replies

10. UNIX for Dummies Questions & Answers

App for internet access on unix terminals

I am trying to find out what I should install to provide internet access and browsing possibilities on multiple unix terminals. Can anybody help? TNXS (5 Replies)
Discussion started by: Jigger
5 Replies
Login or Register to Ask a Question