c++ socket in linux
i have one problem in my mulitple client-server (c++) ,i have two server made for different purpose ,i want to start the two servers at same time with different port number through shell scipt how can i design my program? could give u suggestions plz .
First of all, your thread title is very misleading.
in any case, shell scripts are easy in linux. if you only want to start two copies of your process on separate ports, just make sure your program accepts a port number as a command line parameter, and then create a text file called "start-server.sh" and put the commands in it to start the server on the two ports. the first line of your shell script should be
then just set the file to be executable with chmod, and then you can just run it from the command line by typing ./start-server.sh