#define PORT 7070 int exec_command(int sock, char *buf) { char command[300]; // redirecting the stdout to the socket close(STDOUT_FILENO); dup2(sock, STD