Connecting Tech Pros Worldwide Forums | Help | Site Map

shell script to open many terminals from a parent terminal and execute different cmds

Newbie
 
Join Date: Dec 2007
Posts: 4
#1: May 7 '08
Hello,

I want to open 5 terminals from a parent terminal and place these terminals on the screen properly so that each terminal can be viewed properly at the same time.
Also, i want to execute differnet commands in each terminal.

Can you help me please?

Thanks,
Gunjan

micmast's Avatar
Familiar Sight
 
Join Date: Mar 2008
Location: Belgium
Posts: 136
#2: May 7 '08

re: shell script to open many terminals from a parent terminal and execute different cmds


you could create a script that will open a new terminal and call a script from within....

script 1:
Expand|Select|Wrap|Line Numbers
  1. xterm -e <whatever needs to be run in a seperate window> &
  2. xterm -e <whatever needs to be run in a seperate window> &
  3. xterm -e <whatever needs to be run in a seperate window> &
  4. xterm -e <whatever needs to be run in a seperate window> &
  5. xterm -e <whatever needs to be run in a seperate window> &
  6. xterm -e <whatever needs to be run in a seperate window> &
  7.  
Reply