I have written some codes for socket programming namely socket and plug. To execute them together I am trying to use the below bash file but I get the following errors.I did execute the command chmod +x run.shWhen I wrote echo $TERM , I get xterm. But did not really help.Error: ./run.sh: line 3: xterm: command not found ./run.sh: line 5: xterm: command not found and so on.run.sh#!/bin/bash#file name: run.shxterm -e ./socketusleep 100xterm -e ./plug 5xterm -e ./plug 6xterm -e ./plug 7xterm -e ./plug 8xterm -e ./plug 9xterm -e ./plug 10xterm -e ./plug 11I even tried replacing xterm -e with gnome-terminal -x sh -c, but I get the same errors (only gnome-terminal).
Bash file is unable to execute on linux terminal: Socket Programming
bash;terminal;gnome terminal;xterm;terminal multiplexer