Simple hello world server


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Simple hello world server
# 1  
Old 05-14-2015
Simple hello world server

Hi,

I m beginner in shell programming, now I want to write a simple server that create a pipe and write "hello" on it. In an other hand, a client connect to this server, and retrieve this message.

Thanks for you
# 2  
Old 05-14-2015
Since you want to write it...
1) what have you tried so far?
2) What are your questions?

Cheers
# 3  
Old 05-14-2015
Hi sea,
I searched on the internet for this topic but I could not find how to create a simple server that creates a socket and starts listening to a client on this socket. The client connects on this server, if ok then both client and server start to exchange messages.

thanks
# 4  
Old 05-14-2015
What kind of server?
Web-, Mail-, File-, LDAP-, SQL-, AD- or Loginserver?

There are threads about how to listen to sockets, please use the forum search function.
What you described is regular expected behaviour and nothing special.

Last time i repeat myself:
  1. What have you tried so far?
  2. What is your SPECIFIC question?

Cheers
# 5  
Old 05-14-2015
That might be a bit oversimplified. Are you talking of (named) pipes? Or sockets? Server and client on the same local node? Network operation?
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. What is on Your Mind?

Hello World Linux - Morning Server Tasks with Your First Coffee

New "Beginners" Video: Hello World Linux - Morning Server Tasks with Your First Coffee https://www.youtube.com/watch?v=A0X1_at7JP8 (0 Replies)
Discussion started by: Neo
0 Replies

2. What is on Your Mind?

Mad World Remix of Moby Video (Are You Lost In The World Like Me)

This is an excellent video comment on modern society and the remix is good too: https://www.youtube.com/watch?v=5DU1B_XkyIk 5DU1B_XkyIk Watch the video above and post your comments. (3 Replies)
Discussion started by: Neo
3 Replies

3. Shell Programming and Scripting

Simple rm commands in my server

Hi all, I have PLESK to manage my virtual dedicated server. The most recent version left a favicon.ico file in all my domains and subdomains. I want to delete them without having to go into each individual folder. So I'd like to remove favicon.ico from every subfolder of /var/www/vhosts/ ... (4 Replies)
Discussion started by: chickenhouse
4 Replies

4. IP Networking

Simple Web Server

Hi i am looking to design a simple web server for a local machine to work along dansgaudian. The server need to display a cgi perl script that gives the user notification of an 'Access Denied'. Has anyone got any ideas... anything will help, code ideas or design ideas. Thanks you Mark (1 Reply)
Discussion started by: cb.mark
1 Replies

5. Programming

Couldn't compile the simple "Hello World"

So, this is my first C++ program under linux. My OS is Red Hat 8.0, and my codes are like following: $vi hello.cpp #include <iostream> using namespace std; int main() { cout << "Hello World!" << endl; return 0; } $ g++ -o hello hello.cpp the error message are: ... (3 Replies)
Discussion started by: HOUSCOUS
3 Replies
Login or Register to Ask a Question