Link to home
Start Free TrialLog in
Avatar of mstrelan
mstrelanFlag for Australia

asked on

shell command to spawn new terminal window

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

ASKER CERTIFIED SOLUTION
Avatar of mstrelan
mstrelan
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial