07-27-2009
running Multiple terminals/shells
Hi, I'm looking for a way to send commands through multiple shells/terminals (not sure which is proper syntax). Basically, I have to open 3 different shells/terminals and run separate parts of a program suite in each of them. I find this annoying. The commands I have to do are simple, and could be scripted if they all ran in the same shell/terminal. What I'm looking to do is to write a script that will create 3 new shells/terminals using either gnome-terminal or xterm, and then send commands to them from the one that I ran the script in. Is there a way to assign a tty to them as I open them or to get their tty from my script? Or will this require something more than scripting can handle?
Also, I'd like to change the window title on these to make it easier to track which is which.
Thanks
EDIT: I need to do this in bash
Last edited by Caradoc; 07-27-2009 at 02:54 AM..
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
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
2. UNIX for Dummies Questions & Answers
Hello, I've tried for a while now to run a bash script that continues to the end, while opening new shells as needed.
I've tried
xterm -e "somecommand"; &
xterm -e " somecommand";
I've also tried
screen -S "somecommand"; &
screen -S "somecommand";
All without any luck, they... (5 Replies)
Discussion started by: Closed_Socket
5 Replies
3. Programming
Hi,
i was trying to play with fork,exec and signal for spawning multiple new shells, but it seems that i'm doing blunder somewhere.
<sample code>
1 /*
2 * The idea is to fork multpile(equal to $ULIMIT) childs
3 * and replace their images with process:csh
4 * during this the parent... (3 Replies)
Discussion started by: amit4g
3 Replies
4. Shell Programming and Scripting
I'd like to write a script that will call n number of terminals that will all ssh to X-server and automatically enter the same password.
Unfortunately I'm not exactly sure what kind of commands would work for me here because when I call for gnome-terminal, a new terminal pops up and the old... (1 Reply)
Discussion started by: gelitini
1 Replies
5. UNIX for Advanced & Expert Users
Hi
I have a shell script A which calls another 10 shell scripts which run in background. How do i make the parent script wait for the child scripts complete, or in other words, i must be able to do a grep of parent script to find out if the child scripts are still running.
My Code:
... (1 Reply)
Discussion started by: albertashish
1 Replies
6. Programming
Hi,
Basically I've written a game in ncurses that supports multiple players. Each player has a process associated with him which shares a segment of memory in which the player's structures are stored, and these structured are accessed by the 'server' program and handled there. The scope of the... (13 Replies)
Discussion started by: dgre0018
13 Replies
7. AIX
I just wondering if there are ways to open multiple virtual terminal to a single LPAR.
After I have use putty to login to the VIOS. I will use mkvt -id <LPAR id> to open console but if my friend want to open 2 second one, it will say, VT already connected.
IS there a way to work this around ? ... (1 Reply)
Discussion started by: wingcross
1 Replies
8. Shell Programming and Scripting
Hi
I am new to Ubuntu and Bash scripting. I am working on a project to give a demo on an SDN application to my class. I need some help in scripting to create the demo. Please help in case if you have any idea on what am asking.
The demo uses a tool called mininet. I need just one script so... (2 Replies)
Discussion started by: anzal
2 Replies
9. Shell Programming and Scripting
I have few bash shells, which i want to run sequentially,
how to create a shell file, and execute/call one after other shell file. I am very new to shell programming. Bult some and running individually and also with crontab scheduler.
never had a shell calling other shells, kindly would like... (2 Replies)
Discussion started by: cplusplus1
2 Replies