The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
will a named pipe always be size 0 on filesystem? JamesByars UNIX for Advanced & Expert Users 4 03-01-2008 01:39 PM
fifo or named pipe working? lvkchaitanya UNIX for Dummies Questions & Answers 1 02-06-2008 09:44 AM
Named PIPE Tamil UNIX for Dummies Questions & Answers 2 01-17-2007 12:20 AM
IPC using named pipe sharanbr High Level Programming 2 02-16-2006 09:01 AM
IPC using named pipe sharanbr UNIX for Advanced & Expert Users 1 02-15-2006 01:24 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 02-26-2007
Registered User
 

Join Date: Jan 2007
Posts: 5
Named Pipe contents to a file

I want to copy the contents of a named pipe to a file. I have tried using:

cat pipe.p >> transcript.log

but I have been unsuccessful, any ideas?
Reply With Quote
Forum Sponsor
  #2  
Old 02-26-2007
Registered User
 

Join Date: Jan 2007
Posts: 366
A named pipe is used for 2 processes to communicate with each other.

One process writes to the pipe where the other reads from the pipe.

What are you trying to accomplish anyway?
Reply With Quote
  #3  
Old 02-26-2007
Registered User
 

Join Date: Jan 2007
Posts: 5
I know what a named pipe is!

What I am doing is a chat program, I am transmitting the messages between users through the named pipes. I want to send to a file the contents of the pipe, in order to keep a record of the conversation.
Reply With Quote
  #4  
Old 02-26-2007
Registered User
 

Join Date: Jan 2007
Posts: 366
Seems to me a violation of privacy.

Do you have permission of those users to record their conversation?
Reply With Quote
  #5  
Old 02-26-2007
Registered User
 

Join Date: Feb 2007
Posts: 5
Smile

use following syntax

make the content u r writing as a background process
ex::

mkfifo -m 600 foo
ls -l > foo &
cat foo
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:13 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0