Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C Linux
i have a project which i dnt have any information on it but i have to write this ... so many thanks if u help here to describe me what to do exactly ... thanks

4 program which name is P1,P2,P3,P4 write ( each program create a process in OS) and for communicate between them use 3 pipe in Named Pipe type which names are Pipe1 , Pipe2 , Pipe3 ... process1 must read a line from a file by name "input.in" in /home directory then through pipe1 give it to second process ... and second process must convert '*' to '.' and '.' to '*' then send result to third process by pipe3 ... and third process should convert small letters to big letters and inverse then through Pipe3 must sent the result to 4th process .... and at last 4th process save the result into an output file which name is "Output.out" ....
Posted 1-Dec-12 7:51am
Comments
lida zar at 1-Dec-12 13:12pm
   
please someone help me to write this program :(
Nelek at 1-Dec-12 13:52pm
   
You should carefully read this:
what have you tried?[^]
and
Homework[^]
 
We have already helped you in other questions, but this is not how it works. At least show us, that you are trying.
You just post the requirements of the excercise and then start adding comments every 10 minutes. If you nerve the people who should help you, then you are not going to get any help.
People is here without being payed, in their free time after a hard day at work. So please don't flip out if you don't get any answer in the following 10 minutes. Users are all around the world, and the one wanting to help you maybe is sleeping at this moment.
lida zar at 1-Dec-12 14:04pm
   
ok thanks for ur advice ... now i need to know how to read a line from .in file ...? and me trying for this website ... i don't know it can help me or not
 
http://www.cs.utah.edu/~germain/PPS/Topics/C_Language/file_IO.html
 

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
lida zar at 1-Dec-12 13:04pm
   
thanks but its about only named pipe... first i need to create a process ... right? how its possible?
lida zar at 1-Dec-12 13:23pm
   
how to program this then ?
ProgramFOX at 1-Dec-12 13:25pm
   
I don't do all work.
I post a link to the pipes, because in the title I read the word "pipes", so I think that's the most important.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 240
1 Kamal Rocks 184
2 PIEBALDconsult 150
3 BillWoodruff 148
4 Jochen Arndt 135
0 OriginalGriff 5,695
1 DamithSL 4,506
2 Maciej Los 4,007
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


Advertise | Privacy | Mobile
Web04 | 2.8.141216.1 | Last Updated 1 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100