?
Solved

shell command to spawn new terminal window

Posted on 2008-10-24
1
Medium Priority
?
3,334 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Fine Tune your automatic Updates for Ubuntu / Debian
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month9 days, 11 hours left to enroll

762 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