i use ubuntu 20.04,using bash shell scripting i want to run the server in one terminal and open another terminal and run the client.I tried by using gnome-terminal it doesnt solve the problem.
#!/bin/bash
cd clustermanagement
go run server/main.go
gnome-terminal -x sh -c "go run client/main.go;bash"
i tried with other commands like gnome-terminal --bash -c "go run client/main.go; bash" it didn't work.
the server starts running and then if press Ctrl+c and stop the server then only the client is running.
i want server to run and automatically a new terminal should be opened and client should run!
Aucun commentaire:
Enregistrer un commentaire