Solved

shell command to spawn new terminal window

Posted on 2008-10-24
1
3,312 Views
Last Modified: 2013-12-21
hi,

I need to write a shell script which gcc compiles my server / client app (server.c and client.c) and then runs them in separate terminal windows.  how can i spawn these new terminal windows?
echo 'Compiling client...'
gcc Client.c -o Client
 
echo "Compiling server..."
gcc Server.c -o Server -lpthread
 
echo "Running server..."
./Server

Open in new window

0
Comment
Question by:mstrelan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 10

Accepted Solution

by:
mstrelan earned 0 total points
ID: 22801765
using gnome.terminal -x
echo 'Compiling client...'
gcc Client.c -o Client
 
echo "Compiling server..."
gcc Server.c -o Server -lpthread
 
echo "Running server..."
 
gnome-terminal -x ./Client localhost
gnome-terminal -x ./Client localhost 
./Server

Open in new window

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question