Chat program between two soft terminals of my Linux machine

view story

http://www.unix.com – here i havent tried to make a communication between two terminals of different machines not either any socket program my simple aim is use ipc for chat between two soft terminals(tty's) here is my view two terminals with two applications working on same fifo one fifo b/w two terminals try to stout the message from other and vice a versa i use Ubutntu 3.2.0 version,where, parent executes first what actually happened is i could not do it msg taken to fifo but not dispalyed at the other end,what may be the mistake?:wall: more over i could not debug these type of ipc pro (HowTos)