Help with Beginning Linux Programming Book
#65279;I am running SUSE LINUX 9.0. And I have been trying
to brushing up on my UNIX/LINUX client/server
programming skills. However, I can not get it to run
correctly. It consists of three files: server.c, client.c,
and cliserv.h
The example I am using is from âBeginning Linux
Programming 2nd Editonâ, the Stones & Mathewâs book
from pages 429 to 432.
The book say to run the programs do the following:
â To test this out, we need to run a single copy of the
server and several clients. To get them all started at
close to the same time, we use the following shell
commands:
$ server &
$ for i in 1 2 3 4 5
do
client &
done
This starts one server process and five client
processes. The output from the clients, edited for
brevity, looks like this:
531 sent Hello from 531, received: HELLO FROM 531
532 sent Hello from 532, received: HELLO FROM 532
529 sent Hello from 529, received: HELLO FROM 529
530 sent Hello from 530, received: HELLO FROM 530
531 sent Hello from 531, received: HELLO FROM 531
532 sent Hello from 532, received: HELLO FROM 532'
My out put looks like this:âserver: command not found
client: command not found
client: command not found
client: command not found
client: command not found
client: command not foundâ
I can get them to run separately, but not together.
Can anyone please help me with the correct procedures and or
commands/key strokes to get the client/server
running?
|