20000310

cmdsrv


Introduction:

cmdsrv is a command server for Linux.  Is is based on sockets over 
TCP/IP and can be ran locally or remotely.  The idea is that cmdsrv 
listens on a socket for clients to connect.  Once connected, the 
client issues a command (e.g. "ls" or "ps").  The server executes 
the command and redirects the output to a temporary file.  When
the command completes, the server then reads the temporary file 
pumps that through the socket to the client.  The client then
displays the results to the user.


To Execute Locally:

> ./g

Type in a command like "ps" at the client command line.

To terminate the client, just hit enter.


To execute Remotely:

Server Machine > ./cmdsrv&
Client Machine > ./client <remote host name>

Type in a command like "ps" at the client command line.

To terminate the client, just hit enter.

To terminate the server:

Server Machine > ps

Find the PID for "cmdsrv" in the process list.  

Server Machine > kill -1 <cmdsrv PID>


To make:

> ./m

