LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

bash script

Posted 02-28-2011 at 06:58 AM by aydemirk

Hello All,

I am trying to give a input to one script by using an other script. For example:

................
script1.sh:
#!/bin/bash
printf "Whats your name:";
read user_name;
if [-n "$user_name"]
then
printf "Hello $user_name!";
exit 0;
else
printf "You did not enter username:\n";
exit 1;
fi
.............
script2.sh:
#!/bin/bash...
LQ Newbie
Posted in Uncategorized
Views 582 Comments 0 aydemirk is offline
Old

how to program udp server and three client chat

Posted 07-08-2010 at 04:22 AM by aydemirk

Hello,
I am trying to understand how udp server handle incoming client and response them. As an example, i suppose that there are 3 client around. All of them send "hello udpserver!!!" message to udpserver. Now udp server respond them like "hello client1 your ip addres is that" and "hello client2 your ip addres is that" and lastly "hello client3" your ip addres is that"

Could you help me how can i write code in C for gcc compiler...
LQ Newbie
Posted in Uncategorized
Views 1154 Comments 0 aydemirk is offline

  



All times are GMT -5. The time now is 03:33 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration