LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-11-2010, 02:09 AM   #1
sarworld
LQ Newbie
 
Registered: Apr 2010
Posts: 2

Rep: Reputation: 0
Post Open Text Editor through C-program at server-side and it should display to all client


Hi to everyone , I am beginner in "tcp/ip socket programming" on ubuntu. I want to do the client-to-client manging by server but I am not getting any solution. I have an Idea if I open a text editor and that should be shown to each connected client so that client can read message to any other client. So if anyone know that how can we open text editor when I am running my server-side program. please try to solve my problem.



and My 2nd question is how can i open all commnds using my C-program on linux.

and my 3rd question is what is the extension of executable file in ubuntu.
 
Old 04-11-2010, 08:27 PM   #2
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
1: What you are looking for is a "screen" shared session. With this application and an ssh connection, you can share a terminal, running a command like based text editor like nano, emacs or vim.

2: You have many choices. this system(""); function will execute a command and wait until it end (and grab the returned integer). The popen() command from unistd.h (windows.h equivalent) will return the text of the command when it is over. And the fork+exec+pipe way (a standard Linux programming algorithm) will execute the command in real time in a thread (more specifically a child process, in this case) and will send the result as they arrive in the main process. All of these method are good depending on what is your goal.

3: They have none, but have the executable permission flag. The "chmod 755 yourFutureExecutableFilePath" will give execution and reading right to everybody and read, execute and write access to the owner of the file.
 
Old 04-12-2010, 01:00 AM   #3
sarworld
LQ Newbie
 
Registered: Apr 2010
Posts: 2

Original Poster
Rep: Reputation: 0
thanks u very much I'll try and suggest me any book as I am a beginner.
 
Old 04-13-2010, 02:54 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,348

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
www.linuxtopia.org
http://tldp.org/LDP/Bash-Beginners-G...tml/index.html
http://www.tldp.org/LDP/abs/html/
http://rute.2038bug.com/index.html.gz
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't get access to client-side network from server-side network through openvpn nass Linux - Server 1 11-02-2009 04:41 AM
Text Editor that can display ANSI Colour dasy2k1 Linux - Software 3 03-07-2009 03:26 PM
x264 Streaming media server & client decompressing on server-side? Pearlseattle Linux - General 2 12-12-2007 11:04 AM
[most secure, open source, client/server file transfer program] Synesthesia Linux - Software 5 11-28-2005 08:20 PM
help with client side NFS-firewall setup and server side NIS-firewall setup niverson Linux - Networking 3 02-02-2004 08:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:28 PM.

Main Menu
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