/Processes-N-Pipes

Passing a message between 2 processes-C

Primary LanguageC

Course: CS 4540 – Fall 2014
Assignment <2> 
Name: <Waleed H Gudah>
E-mail: <waleed.h.gudah@wmich.edu>
Submitted: <10/12/14>

Usage example:(./thisProgram hello) or (./this "Hello My name is Waleed Gudah")
Please use " ", for messages longer than 1 word
    
Demo {
	
 waleed@Waleed-Ubuntu:~/Desktop/AS2 OS$ gcc Assignment2WaleedGudah -o A2
 waleed@Waleed-Ubuntu:~/Desktop/AS2 OS$ ./A2 "Hi There!"

	Parent(7749): Sending [Hi There!] to Child

	Child(7750): Recieved Message

	Child(7750): Toggling Case and Sending to Parent

	Parent(7749): Received [hI tHERE!] from Child

 waleed@Waleed-Ubuntu:~/Desktop/Link to Shared Folder/AS2 OS$ 

    }

Requirments {
	
Design a program using ordinary pipes in which one process sends 
a string message to a second process, and the second process reverses 
the case of each character (lower to upper, upper to lower) in the
received message, and sends the reverse-case message to the 
first process. For example, if the first process sends the 
message “Hi There” the second process will reply it with 
“hI tHERE”. The program requires using two pipes: 
one for sending the original message from Process 1 to Process 2,
and the other for sending the reverse-case message from Process 2 to Process 1.

}