Software :: Create Server Program That Will Stream Contents Of File To Any Client

Apr 26, 2011

I need help to do a program that emulates the following shell command line:"sort </etc/passwd | less".Using a socket in a connection-oriented setup.First the contents of the file /etc/password are being fed into the sort program. The sort program is then sorting the contents of the file and sending it to another programm called less. Less is paging the results so that you can see one page of the results at a time.I know that i can solve the problem this way:

1. Create a server program that will stream the contents of a file to any client that connects to it
2. Create a client application that will connect to the server and download the contents of the file. The program should then sort the file. After sorting the file the client should connect to the "less" program and send the sorted results
3. Create a server program that will listen for connections and download whatever is sent to it. It will then display that data one page at a time.

View 1 Replies


ADVERTISEMENT

General :: File Transfer Program In C Using FTP Client And FTP Server?

Jun 8, 2010

i am new in tcp/ip.i want to write a program using c for file transfer where FTP client and FTP server will be used.and also this program should work for ipv4 as well as ipv6.and muiltple client can be connect simultaneously.i dont know how to start program.should i use shell script or socket programming for file transfer?can we use FTP client and FTP server in socket programming?

View 2 Replies View Related

General :: Create A Multiple Files By Reading A Input File And Changing The Contents?

Sep 16, 2009

Being new to this area .I have been assigned a task which i am unable to do . Can any one please help me .

I have requirement where i have input file XYZ_111_999_YYYYMMDD_1.TXT and with header and series of Numbers and Footer.

I want to create a mutiple output files with each file having a seperate code which is stored in text file and create XYZ_222_999_YYYYMMDD_1.TXT . and add date in the contents next to series of numbers .Like this

Before change the file looks like this

file name XYZ_111_999_YYYYMMDD_1.TXT

001,19SEP2009-14:05:05,000000003
1234
4567
6785
END_OF_DATA

[Code]....

View 4 Replies View Related

General :: Create A Program File For A New Program?

Mar 8, 2011

How do I create a program file for a new program?

View 1 Replies View Related

Ubuntu :: Is There Any Program / Script That Can Create Torrent File For Each File In Directory?

Apr 14, 2010

Is there any program/script that can create a torrent file for each file in a directory? I have been looking all over but can't seem to find anything of the sort. I have 700+ files I REALLY don't want to make my self.

View 1 Replies View Related

Fedora Networking :: Create A File Like "ifcfg-eth0:1" And Put Contents?

Jun 9, 2010

I am having a problem when creating alias in Fedora Core 10. When i create a file like "ifcfg-eth0:1" and put contents in it like

DEVICE=eth0:1
BOOTPROTO=static
IPADDR=ip addrss
Netmask=Netmask

and when i save settings and restart with "service network restart" the network card does not create any alias like eth0:1 instead it replace the original ip address of eth0 with the ip address i given to eth0:1. So i want to keep both network ips of eth0 and eth0:1.

View 3 Replies View Related

CentOS 5 :: How To Create Bootable CentOS Iso File With New Contents

Jun 16, 2010

I installed the latest CentOS 5.5 in my PC. I added some public domain projects on it. Now how can I make another boot-able CentOS iso file with all the new projects I just added? In the other words, I try to create a boot-able CD with the CentOS and all the projects on it.

View 1 Replies View Related

Networking :: Create Both Server And Client On The Same System?

Oct 20, 2010

Can we create both server and client on the same system. I want to know whether it can be used on the same system.

View 7 Replies View Related

General :: One Server Many Client Chat Program Using Sockets

Aug 1, 2011

I am trying to write a chat program with sockets as part of my project. I made a socket server, using fork ,I tried to connect it with different clients.Each client will send messages to others through server.So server has a shared memory storing every clients username and client id. But the problem facing is first client is able to sent messages to every other client formed after that.But second client onwards it is not able to sent message to previously connected ones. Server is not able to write on those client id's.

View 4 Replies View Related

Server :: Set Up A Program Or Application Online To Be Used From A Client Computer?

Apr 20, 2010

Is there a way I can install a windows program to webspace and run it from a linux client computer? To specify, I'm a student at the University of Minnesota. I have access to linux machines running Ubuntu, however, the space allocated to us is too small for the program I would like to run on these computers. I do have webspace I can use though. The thing I'd like to be running on the linux computers is a windows application requiring installation. So is there a way to put/install/(whatever else it might be called) this program onto my webspace and be able to run it from the linux computers? I know it's probably unlikely, but maybe?

View 4 Replies View Related

Programming :: Connection Refused In Client Server Program

Oct 23, 2010

I wrote a simple client server socket program in C.

View 1 Replies View Related

General :: Grep Contents Of File On Remote Server?

Sep 24, 2010

I am attempting to grep the contents of a key file I have SCP'd to a remote server. I am able to cat it:

Code:
[bluethundr@LBSD2:~]$:ssh root@sum1 cat /root/id_rsa.pub
root@lcent01.summitnjhome.com's password:

[code]...

View 5 Replies View Related

Server :: Dnsmasq.lease File + Description Of Its Contents?

May 4, 2011

iam running dnsmasq on my target board , my dnsmasq.conf has following configurations

# cat /var/etc/dnsmasq.conf
strict-order
localise-queries

[code]....

View 1 Replies View Related

Networking :: Samba PDC - Client Machine Create New Profile When Server Down

Dec 14, 2010

I have set samba domain. I am able to add win 7 and xp clients. All r working fine. But I have a doubt. If I shutdown the samba pdc server, I should be able to login the client machine with the same profile (which I had, when the samba pdc server was up). Now , if I shutdown the sambapdc, I am able to login the client machine, but new profile is being created. How to avoid this.

How to say to samba that the client machine should load the same profile which was created when the server was up and running. I do not want the client machines to create new a profile when the server is down bcoz in windows domain, when the windows domain is shutdown, the client machines are able to login with the same profile (the profile which was created when the domain was up). I wish to have same thing in samba pdc also.

View 2 Replies View Related

CentOS 5 Server :: Want To Know File Handles / File Names At NFS Client

Nov 16, 2010

In case that NFS client of fedora is set to cache nfs file handle, where is the cache stored such as /var/lib/nfs?If it's stored in memory instead of directory tree, what command can I know the combination of file names and file handles with?OS in my test environment: Fedora Core 6

View 2 Replies View Related

Software :: Satellite Sharing Client - Receiving Stream Of Codes

Apr 30, 2010

I need to ask about some method let me to subscribe to some one who make satellite sharing by some file and cable attached to the Receiver to let you receive the stream of codes that he send

View 3 Replies View Related

Programming :: Create A Screen Capture Program With Xvfb Server?

Jan 4, 2010

I am trying to create a screen capture program with Xvfb server, ImageMagick and Khtml2PNG. I seem to be having some issues and was hoping someone could help me out. I have everything installed and working on a centos WHM/CPanel system and am able to generate the screen shots and save them to root folder from shell with the following commands.

Xvfb :2 -screen 0 1024x768x24&
export DISPLAY=localhost:2.0
khtml2png2 --sw 200 --sh 150 http://www.example.com example.png
It works 100% fine when you run it from shell.

[Code]...

View 4 Replies View Related

Server :: CentOS /Samba Server- XP Windows Client File Sharing?

Nov 3, 2009

I have a CentOS + Samba server and Windows XP client machines. Users, passwords and permissions are entered on the server machine.users and passwords ( same as on the server ) are entered in the XP client machine.When attempting to access a public file on the server using a XP client machine and the IP address of my server, I am asked a user name and password and none of the already entered seem to work. I cannot access the server file (prompted again and again to enter user name and password). What did i miss

View 7 Replies View Related

Software :: Which Program To Stream Video?

Apr 21, 2010

I've looked around and found some programs avaialable in linux to stream video. I'm looking to stream to my PS3 but would like to be able to stream to my other computers. I would like the program to transcode too. I'm really looking for opinions on which one to use. I tried PS3 Media Server, it worked fine but it tended to be a resource hog. Also, I had trouble seeing it on other computers.

I'm running Debian Squeeze on an old AMD 3000+ but that will be updated here in the future. This is all internal personal network. Most computers will be on wired lan.Opinions? Ease of configuration, ease of use, stablilty?

View 1 Replies View Related

Programming :: Low Level Program To Save Mjpeg Stream

Jun 26, 2009

I'll just say I am a complete Linux beginner, but I have done vbs, js, php, html web type stuff so I'm not a complete beginner to programming.However I've been trying to learn C and python but it's not making a huge amount of sense.I am wanting to make a simple low level program that copies an image from a mjpeg stream on 192.168.0.1/videostream.cgi for example to a variable then save that variable to a file on my system.I am aware that there are programs out there that would do this but I still want to make my own.

View 1 Replies View Related

Ubuntu :: Create ISO Of Just The Contents Of A Hard Drive

May 5, 2011

I've been using the command

Code:

dd if=/dev/sda of=/dev/sdb

to copy my hard drives contents completely to another hard drive.However I need a way to copy just the files on one partition. I don't want the entire partition copied, just the files. I need the code to output them in to an ISO,

View 2 Replies View Related

Fedora Networking :: Create Shared Folders And Stream To Other Pc's

Jun 5, 2011

network with a laptop with windows 7, a wireless all-in-one dcp-585cw, eminent em7075-dts.
it's possible to create shared folders in windows, in order to make them accesble for other pc's, devices, such as the eminent em7075-dts multimedia player.

when i start windows mediaplayer ( a requirement), i can browse over my pc when i am on the interface of the em7075 ( what you see on tv when go to the hdmi channell.) in other words, i have the option to play / stream a movie from my pc, over the network to the em7075.

View 2 Replies View Related

Server :: LDAP Server Vs Client / Export Server's Home Directory To The Client?

Jun 11, 2011

I configured openLdap in RHEL5 on virtual achines,everything is working fine, I created a user called ldapuser,in LDAP server and i created a home directory for ldapuser in my LDAP client, now i can able to login to the both Server and client with ldapuser account....

Now here what am expecting is i want to export my server's home directory to the client, i dont want to create home directories manually in the client machine, i googled about that, and it can be done through autofs.....

what need to be done on the client and server side.

View 6 Replies View Related

Server :: Share File From Windows Client?

Mar 3, 2010

I have configured samba in linux .i can share file from windows client. we are not using any domain or ldap. using workgroup only. kindly let me know is it possible to change the smbpassword from client.

View 1 Replies View Related

Ubuntu :: Create A User Partition And Move The Contents Of Home Folder Into It

Mar 7, 2010

Gparted shows that my dual boot laptop has the following partitions: [URL] I want to create a partition and move the contents of my Home folder into it.

View 3 Replies View Related

Ubuntu :: Create Shell Script To Copy Contents Of A Shared Folder On A XP PC?

Apr 8, 2011

I was wondering if there would be a way for me to copy the contents of a shared folder that's running on an XP system using shell script. Actually, there are two shared folders that I want to do this with. I want to be able to launch the script and automatically copy all the contents of each folder into two separate folders on my ubuntu desktop. For example;

Lets say that I have Shared Folders A1 and A2 on my networked XP system and I have Folders B1 and B2 on my Ubuntu desktop. I want the script to automatically copy the contents of A1 into B1 and likewise for A2 and B2. During the copying, I want the script set up such that any pre-existing files in the B1 & B2 folders will automatically get overwritten by the ones copied from A1 & A2.Is there any possibilities of me achieving this?

View 7 Replies View Related

Software :: 10.04 - Couldn't Open Localsound Device Error 2 Client Side Error: Could Not Set Up A Stream

Jul 18, 2010

I just installed say with

Code:
sudo apt-get install epos
and everything went fine, until I tried to use it.
When i do
Code:
say hello
it gives me
Quote:
he~lo######~T

Could not open localsound device, error 2 Client side error: Could not set up a stream

View 6 Replies View Related

Software :: Check The Contents Of A Text File For A Specific String And Remove It From The File From The Command Prompt?

Oct 14, 2010

I want to be able to check the contents of a text file for a specific string and remove it from the file from the command prompt. I would basically be searching through a number of files and if a specific string is found I would like it removed automatically. pretty much a find and replace, were the replace is nothing. any one got any ideas on how you would do this. I already have the search part sorted just need to be able to remove the string I don't want from the multiple files.

View 4 Replies View Related

Software :: Overwrite The Contents Of A File Without Changing The File Size?

Jul 12, 2010

We have some large files with sampling data in it. Don't want to delete these files. But want to quickly overwrite the file with 0s and/or 1s and preserve the original file size.

View 3 Replies View Related

General :: Replacing A String In A File With The Contents Of Another File?

Jun 15, 2010

I would like to know how I can replace a string in one file with the complete contents of another life.

View 10 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved