View Single Post
Old Feb 21st, 2007, 8:04 PM   #1
cwl157
Professional Programmer
 
Join Date: Feb 2005
Posts: 327
Rep Power: 4 cwl157 is on a distinguished road
named pipes question

I want to be able to open 2 way communications between people using named pipes (they are created using the mkfifo command). I am able to get one way communications to work by entering
cat > mypipe
on the one user login and
cat < mypipe
on the other user login. However, this is only 1 way communication. I also need it to go the other way too. I have tried to make another pipe and then do the same thing but reverse so it would read and write from and to the other screen but it seems like only one pipe is run at a time. Is there a way for one of the pipes to run in the background or something so i can have 2 way communication at the same time? Thanks. By the way i am using BASH and both users are logged into the same machine from remote locations.

Last edited by cwl157; Feb 21st, 2007 at 8:35 PM.
cwl157 is offline   Reply With Quote