Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Open Source > BOOK: Beginning Linux Programming, 2nd Edition
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Linux Programming, 2nd Edition section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 11th, 2004, 12:49 AM
Registered User
 
Join Date: Jun 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginning Linux Programming 4th edition pchandra Linux 2 April 15th, 2008 08:11 PM
.ppt file for Beginning Linux programming 3rd tseng2005 BOOK Beginning Linux Programming, 3rd Edition 1 November 21st, 2005 02:15 PM
.ppt file with Beginning Linux programming 3rd tseng2005 BOOK Beginning Linux Programming, 3rd Edition 0 September 11th, 2005 08:51 AM
Problem in <Beginning Linux Programming> Chap21 users Linux 1 June 2nd, 2005 11:28 PM
Where is the book"Beginning GTK+/GNOME Programming wenj Wrox Book Feedback 4 October 16th, 2003 07:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.